Skip to content

How to manage multiple environments Dev and Prod? #5136

Answered by mikehardy
ghadeeraqraa1992 asked this question in Q&A
Discussion options

You must be logged in to vote

There are an infinite number of answers to that question but the short answer is do not do that ever

Why? You will be mixing your dev data with your prod data. That's not a good practice.

Have a dev firebase project. Have a prod firebase project.

Then use one of the infinite ways to select the right one as you build - I personally use android flavors and iOS targets where the config files on android are in separate flavor filesystem trees, and on iOS the correct firebase project plist files are included via file membership in the targets.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andersonaddo
Comment options

Answer selected by andersonaddo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants