Skip to content

Commit

Permalink
prod deployment documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
macfarlandian committed Mar 29, 2021
1 parent bffd087 commit aeeb756
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion spotlight-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ There is no per-view authentication; enabling auth (via environment variable, as

## Deploys

This app can currently only be run locally or in a staging environment. Information about the production environment will be added here once it is provisioned.
This app can be run locally, in staging, and in production. Deploying to staging and production are very similar, as described below.

### Pre-requisites

Expand All @@ -72,6 +72,14 @@ You should then test this locally by running `firebase serve`: it will run the s

When you're satisfied, deploy the frontend to staging with `firebase deploy -P staging`. Test vigorously on staging before deploying to production.

### Deploying to Production

Similar to above, but with slightly different commands:

Generate a production build with `yarn build`. Test locally with `firebase serve`. Deploy the frontend with `firebase deploy -P production`.

Test vigorously! Don't be afraid to rollback the deploy through the Firebase console.

## Available Scripts

Besides the scripts mentioned above for running and deploying the app, you can also run:
Expand Down

0 comments on commit aeeb756

Please sign in to comment.