#!/bin/sh
cd `dirname $0`
node update.js
node liquor.js
node render.js
./node_modules/s3-cli/cli.js sync -P --region 'us-west-2' --default-mime-type 'text/html' out/ s3://www.belltowncrime.com/
./node_modules/s3-cli/cli.js put -P --region 'us-west-2' --default-mime-type 'text/css' main.css s3://www.belltowncrime.com/main.css

#!/bin/sh
cd `dirname $0`
node update.js
node liquor.js
node render.js
cat > ~/.s3cfg << EOF
[default]
access_key = $AWS_KEY_ID
secret_key = $AWS_SECRET_ACCESS_KEY
EOF
./node_modules/s3-cli/cli.js sync -P --region 'us-west-2' --default-mime-type 'text/html' out/ s3://www.belltowncrime.com/
./node_modules/s3-cli/cli.js put -P --region 'us-west-2' --default-mime-type 'text/css' main.css s3://www.belltowncrime.com/main.css

Write keys from env to .s3cfg.
Write keys from env to .s3cfg.
