Firebase hosting and deployment of only new / changed / affected files

I use Firebase Hosting to host a web application. I also have small screencasts on the site, but every time I want to make changes to the application and deploy, I need to wait until the videos are clicked.

Is there a way to selectively make changes to Firebase? Also, why doesn't Firebase just click on new / changed / touched files? I suppose because it does not do any version control for hosted applications and therefore does not track such things, but it just makes the selective push much more necessary.

+14
firebase-hosting
source share
2 answers

Firebase does not currently perform any version control, so automatically ignoring files that have not been modified / not affected is not an option. However, in firebase.json, you can specify the files that should be ignored in the .ignore section.

I was looking for an additional manual option to specify on the command line when running firebase deploy , but doing this in the firebase.json file probably makes more sense if it is known that the file has not been modified or does not need to be reused. -deploying.

https://www.firebase.com/docs/hosting/guide/deploying.html

From the docs:

ignore

 "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ] 

optional - the ignore option is an optional parameter since version 1.0.1 firebase-tools, which indicates the files that should be ignored during deployment. It can accept globe definitions in the same way that Git processes .gitignore.

+7
source share

There seems to have been a change in "deployment." When I do a "Firebase deployment" now. Only the latest (modified) files are downloaded.

0
source share

All Articles