Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update a file that I deployed to Firebase Hosting?

On deploying my app to Firebase, I am getting this message:

You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!

I learnt from a previous post that I need to replace the default index.html with my custom index.html. How do I do that using the Firebase Console?

like image 391
theusual Avatar asked Oct 26 '16 05:10

theusual


People also ask

How do I update firebase project?

If you are already signed in to the new Firebase Console with the same Google account as you used on firebase.com , then you should see your firebase.com project listed under "Projects currently at Firebase.com". Follow the instructions on the new Firebase upgrade page for Web, Android or iOS.


1 Answers

You cannot change hosted files in the Firebase Console.

Instead, you should change the index.html on your local copy where you initially ran the firebase deploy command. Once you're done with the changes, run firebase deploy again to push the updated version of your website to Firebase Hosting.

For small changes it is probably faster to run firebase serve. This spins up a local web server, so that you can test the changes. Once you're satisfied they work, publish them to Firebase Hosting with firebase deploy again.

Update: this is now possible through some custom scripting. See my answer here for details: Upload single file to firebase hosting via CLI or other without deleting existing ones?

like image 80
Frank van Puffelen Avatar answered Sep 17 '22 20:09

Frank van Puffelen