Deploy with JEKYLL_ENV=production
This commit is contained in:
parent
f98757adae
commit
60acd26d60
|
@ -1,4 +1,5 @@
|
||||||
_site
|
_site
|
||||||
|
_production
|
||||||
.sass-cache
|
.sass-cache
|
||||||
.jekyll-metadata
|
.jekyll-metadata
|
||||||
.byebug_history
|
.byebug_history
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
SITE=netflux.io
|
SITE=netflux.io
|
||||||
DISTRIBUTION=EH0M9KWOAPOFH
|
DISTRIBUTION=EH0M9KWOAPOFH
|
||||||
|
|
||||||
jekyll build
|
JEKYLL_ENV=production jekyll build -d _production
|
||||||
aws s3 cp _site s3://$SITE/ --recursive --acl public-read --exclude "bin/*"
|
aws s3 cp _production s3://$SITE/ --recursive --acl public-read --exclude "bin/*"
|
||||||
aws cloudfront create-invalidation --distribution-id $DISTRIBUTION --paths "/*"
|
aws cloudfront create-invalidation --distribution-id $DISTRIBUTION --paths "/*"
|
||||||
|
rm -rf _production
|
||||||
|
|
Loading…
Reference in New Issue