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