Home > Blockchain >  Fiebase hosted url not working after deploying it again
Fiebase hosted url not working after deploying it again

Time:01-14

I have update my already deployed flutter project and deployed it again in firebase . It shows the deployment is complete ,but my hosted url leads me to a firebase documentation page like below :

enter image description here

I intially typed:

firebase init 
firebase deploy

The url was working fine when I deployed it for the first time . I made some updation on my project and tried to deployed it again .What can I do now ?

this is my firebase.json: enter image description here

CodePudding user response:

I have solved the issue , I shouldn't have overwrite the index.html .Overwriting index.html will produce a default index.html which is created by firebase .So when they ask File build/web/index.html already exists. Overwrite? No should be given .

CodePudding user response:

As I see your in image,it shows your build/web folder contains only 2 files in the folder. This is mostly happens if the deployment path incorrect.

enter image description here

Follow the steps to sovle the issue

  1. Enter firebase init. After running this command it will show the parent folder path of your project as in the below image.

enter image description here

  1. After that select Hosting: Configure files for Firebase Hosting and (optionally) set up GitHub Action deploys this future to host. And then hit enter button

enter image description here

  1. This will show you the public directory of your project as below

enter image description here

  1. After that enter your public directory as build/web.

enter image description here

  1. If you do all the above steps correctly while deploying the code, your build/web will contains around more than 70 files as the below image

enter image description here

I hope this will solve your issue

  • Related