Skip to content
W. Scott Meeks edited this page Nov 1, 2023 · 5 revisions

How to deploy

Front-end to S3

From this project's root:

  • Checkout the branch you want to deploy
  • Run grunt to build the /dist
  • Run ./deploy.qa.sh to deploy /dist to S3
  • In addition to deploy.qa.sh, there's deploy.dev.sh, and deploy.prod.sh (use ./ at front of each command)

Now the front end is on S3, but we're using CloudFront which caches everything. Eventually things expire but you can speed that up using invalidation. The qa and dev scripts include creating invalidations. Prod should be invalidated manually as described below.

Invalidate CloudFront Distribution

Go to the CloudFront Distribution for the server, here's QA:

When it's complete (about 10-15 minutes) the site will be up-to-date.

You can also invalidate partial paths and it goes faster. We can invalidate 1000 paths a month for free ($0.005 per additional path), and wildcards count as 1 path -- /* is price efficient but not if you're in a hurry.

Clone this wiki locally