Files
booster/docs/guides/multiple-env.md
Kyle Fang 6ceb002b98 fix: docs
2020-02-18 13:09:25 +08:00

1.1 KiB

Multiple Environment setup

For reason on having multiple envs, here

These will be a step by step guide on adding Prod env to your booster project.

To get started, we usually duplicate whatever we have in scripts/configs/dev to scripts/configs/prod.

Create firebase project

Go to https://console.firebase.google.com and add a new project, we recommend name it goboost-prod (where goboost is your project name).

Do everything in Setup firebase but replace dev with prod.

And don't forget to upload the same APNs keys to this project as well.

Edit .firebaserc and replace the value for prod.

Add codepush production env

Do everything in Setup CodePush but replace dev with prod, also you should use Production instead of Staging on codepush keys.

Configs

Change the values in scripts/configs/server.json and scripts/configs/app.json.

Switch to prod

yarn use prod