Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase deploy firebase.json only

Can I deploy just the hosting configuration file, firebase.json instead of deploying all my assets ie. html files, images etc? If so, how?

I'm currently doing firebase deploy --only hosting but that will deploy all the assets.

I'm asking because I want to test out my rewrite rules etc and don't want to re-upload all the assets again which is time consuming. Thanks.

like image 389
user3240644 Avatar asked Sep 12 '17 06:09

user3240644


People also ask

Is firebase a json?

All Firebase Realtime Database data is stored as JSON objects. You can think of the database as a cloud-hosted JSON tree.


1 Answers

There is currently no way to tell firebase deploy to only apply the changes in the firebase.json file.

But note that firebase deploy only deploys files on hosting, if the local file is different from the deployed version. So if none of the file are modified, it effectively only updates the other changes in your firebase.json file.

like image 146
Frank van Puffelen Avatar answered Sep 23 '22 14:09

Frank van Puffelen