13
Feb
This is a quick guide to how you deploy a single page web application to S3 behind cloudfront get your CloudFront distribution id aws cloudfront list-distributions Invalidate all files in the distribution, so CloudFront fetches fresh ones aws cloudfront create-invalidation --distribution-id=S11A16G5KZMEQD --paths / The actual full release script is #!/usr/bin/env bash BUCKET=mysite.com SOURCE_DIR=dist/ export AWS_ACCESS_KEY_ID=xxxxxxxxxxx export AWS_SECRET_ACCESS_KEY=xxxxxxxxx export AWS_DEFAULT_REGION=eu-west-1 echo "Building production" if npm run build:prod ; then echo "Build Successful" else echo "exiting.." ...
Read More