I'm starting with Firebase Hosting, I made a static website with some Javascript elements. I have a simple question that I did not find clear information in the Firebase documentation: how would I edit my static site? Whether to change some information, or upload a new page? Do I deploy all over again like the first time I uploaded the site?
Asked
Active
Viewed 2,655 times
1
-
Have a look at https://support.google.com/firebase/answer/6386780?hl=en – manikant gautam Oct 26 '18 at 12:04
-
Possible duplicate of [How to update a file that I deployed to Firebase Hosting?](https://stackoverflow.com/questions/40254475/how-to-update-a-file-that-i-deployed-to-firebase-hosting) – Grimthorr Oct 26 '18 at 12:12
1 Answers
3
To make changes to a deployed Firebase Hosting website, you should make the necessary changes to your local copy and then run firebase deploy
again.
Each time you run firebase deploy
after making a change, the following steps (amongst others) are performed automatically:
- The version number is incremented
- The current version becomes the previous version (and so on)
- All changed files are uploaded
- The changes are made live
This is useful because the full history of your deploys are kept on Firebase Hosting so that you can rollback to a previous version should you need to.

Grimthorr
- 6,856
- 5
- 41
- 53