Deploy with JEKYLL_ENV=production

This commit is contained in:
Rob Watson 2018-01-10 05:50:21 +00:00
parent f98757adae
commit 60acd26d60
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
_site
_production
.sass-cache
.jekyll-metadata
.byebug_history

View File

@ -1,6 +1,7 @@
SITE=netflux.io
DISTRIBUTION=EH0M9KWOAPOFH
jekyll build
aws s3 cp _site s3://$SITE/ --recursive --acl public-read --exclude "bin/*"
JEKYLL_ENV=production jekyll build -d _production
aws s3 cp _production s3://$SITE/ --recursive --acl public-read --exclude "bin/*"
aws cloudfront create-invalidation --distribution-id $DISTRIBUTION --paths "/*"
rm -rf _production