some error pages; aws build script; optionally disable comments; environment

This commit is contained in:
Danny Berger
2014-03-17 17:17:39 -06:00
parent dc7b8eb0d2
commit e293db52fb
15 changed files with 113 additions and 7 deletions

31
_deploy/aws/deploy Executable file
View File

@@ -0,0 +1,31 @@
#!/bin/bash
# args: s3cmd-config
set -e
[ -e _build ] && rm -fr _build
mkdir _build
STATIC_VERSION=`git rev-parse HEAD | cut -c -10`
(
echo 'static_version:' "$STATIC_VERSION" ;
echo 'destination: _build/_site'
echo 'environment: prod'
) > _build/_config.yml
jekyll build --config _config.yml,_build/_config.yml
mv _build/_site/static/dev _build/_site/static/$STATIC_VERSION
s3cmd sync \
--config "$1" \
--acl-public \
--no-delete-removed \
--no-preserve \
--exclude 'private/*' \
--verbose \
_build/_site/ \
s3://dpb587-us-west-2