Skip to content

Deployment

chris48s edited this page Jan 27, 2020 · 3 revisions

Deployment

  • Set the production API key in an env var REACT_APP_API_KEY (if you put this in a .env.production file, it will be picked up automatically)
  • Deploy to S3 as a static file using ./deploy.sh
  • The deploy script depends on jq and awscli: sudo apt-get install jq awscli
  • Set your AWS credentials with an env var: export AWS_PROFILE=wheredoivote
  • You can check your AWS authentication using aws iam get-user before attempting a deploy

TODO: automate this process and have Travis CI run it on a successful commit to master.

Clone this wiki locally