language: node_js
node_js:
  - "0.11"
branches:
  only:
    - live
before_install:
  - openssl aes-256-cbc -K $encrypted_a71eb8336e4c_key -iv $encrypted_a71eb8336e4c_iv -in deploy/key.rsa.enc -out deploy/key.rsa -d
install:
  - npm install -g grunt-cli
  - npm install glob mime-types aws-sdk
  - npm install
  - grunt bower
  - grunt precompile
script: node deploy/s3.js
after_success:
  - rsync -e "ssh -i $PWD/deploy/key.rsa" public/assets/manifest.json deploy-gamekeller-net@gamekeller.net:/var/www/gamekeller.net/src/public/assets
  - ssh -i $PWD/deploy/key.rsa deploy-gamekeller-net@gamekeller.net "bash -s" < deploy/server.sh
language: node_js
node_js:
  - "0.11"
branches:
  only:
    - live
env:
  - secure: "Ra0VmkwKLLxGbsFMCaS1nJzU7DRWWbSfeFtWmvzWJJn184rKYQVrTKzh+dNnjmDptNpUzEFWVBKUD5Zx/Nf5ZBilkrhIlQjgkStOygx6doaQXRAEdMSckxwGg/+OtjsbsjZk8GX4sEDsFi9Y800uiAmjZDdyuwxsEMcqXIowmhI="
  - secure: "Ed2MAQR+nKbzswhBnubdQtjQ3teErCAkFF6fcs2DuZvJQ/DrrXi6OBhlFLbx/GtOTnzBt/XImVYtquORZ+0ioTEDRTmna8ht17hlRZ/J19Fd4VOcbFOF4qMoRQbCvSUqyYvpZVO4OQvSZsH6CtZsUuL3iVQtsEBErtBOn77oVRg="
before_install:
  - openssl aes-256-cbc -K $encrypted_a71eb8336e4c_key -iv $encrypted_a71eb8336e4c_iv -in deploy/key.rsa.enc -out deploy/key.rsa -d
install:
  - npm install -g grunt-cli
  - npm install glob mime-types aws-sdk
  - npm install
  - grunt bower
  - grunt precompile
script: node deploy/s3.js
after_success:
  - rsync -e "ssh -i $PWD/deploy/key.rsa" public/assets/manifest.json deploy-gamekeller-net@gamekeller.net:/var/www/gamekeller.net/src/public/assets
  - ssh -i $PWD/deploy/key.rsa deploy-gamekeller-net@gamekeller.net "bash -s" < deploy/server.sh
Add env vars for S3
Add env vars for S3
