简体   繁体   中英

Creating “blueprints” for firebase staging and production databases?

Assume we worked on a staging real time database during development, it shaped up to be big and complex structure json. Is there any way to define blueprint for firebase's real time database so that structure from staging database can be moved to production, without data that is currently in staging database?

The Firebase Database is a schemaless database. If you remove the actual values from the database, nothing will be left. So there also won't be anything to clone in that case.

Any rules about the data structure (validation) and access permissions are captured in Firebase's security rules . If you define those in a separate file, you can use the Firebase CLI to deploy them to either environment. See this for how to do that: How do I deploy Firebase Database Security rules using the command line?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM