skip to Main Content

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


  1. Chosen as BEST ANSWER

    It seems it was in the documentation that i had not found previously :

    documentation

    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 custom rules.json files, then apply the config as a List in firebase.json as shown in the above screen.


  2. 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 run firebase deploy for each of them, and identify the correct database instance each time.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search