From aeeb756718782b96ce23d4337b339837d6f81ee4 Mon Sep 17 00:00:00 2001 From: Ian MacFarland Date: Mon, 29 Mar 2021 12:49:32 -0700 Subject: [PATCH] prod deployment documentation --- spotlight-client/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/spotlight-client/README.md b/spotlight-client/README.md index 3bd8610a..ae2fa16d 100644 --- a/spotlight-client/README.md +++ b/spotlight-client/README.md @@ -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 @@ -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: