I would like to run firebase deploy --only database
and it deploys the Firebase Real time database rules for each of my databases instances.
I would like the config of firebase.json
/ .firebaserc
and wherever that applies if that’s possible.
I would like to run firebase deploy --only database
and it deploys the Firebase Real time database rules for each of my databases instances.
I would like the config of firebase.json
/ .firebaserc
and wherever that applies if that’s possible.
2
Answers
It seems it was in the documentation that i had not found previously :
So i simply have to replace
my-db-1
for example by my database name (the part of the URL that i pick when i create my database) and create my customrules.json
files, then apply the config as aList
infirebase.json
as shown in the above screen.A single run of
firebase deploy
will only update a single Realtime Database instance. If you want to update multiple instances, you will have to runfirebase deploy
for each of them, and identify the correct database instance each time.