Deploy with JEKYLL_ENV=production
This commit is contained in:
parent
f98757adae
commit
60acd26d60
|
@ -1,4 +1,5 @@
|
|||
_site
|
||||
_production
|
||||
.sass-cache
|
||||
.jekyll-metadata
|
||||
.byebug_history
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue