From 60acd26d60178206b9f53ae6a45d34f23f2bdfd7 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Wed, 10 Jan 2018 05:50:21 +0000 Subject: [PATCH] Deploy with JEKYLL_ENV=production --- .gitignore | 1 + bin/deploy.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a22ba01..5c7faeb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ _site +_production .sass-cache .jekyll-metadata .byebug_history diff --git a/bin/deploy.sh b/bin/deploy.sh index be85ae5..aa2831d 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -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