Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
export AWS_SECRET_KEY=`cat .aws_secret_key`
ember deploy --environment=$ENVIRONMENT
if [ $? -eq 0 ]
LATEST_REVISION="$(ember deploy:list --environment=$ENVIRONMENT | grep "1)" | awk '{print $2}')"
ember deploy:activate --revision=$LATEST_REVISION --environment=$ENVIRONMENT
echo "$(tput setaf 2)Deployed the heck out of the latest revision."
exit 0
echo "$(tput setaf 1)Something is jacked up with the deploy."
exit 1
Copy link

mtmckenna commented Oct 25, 2015

This is a shell script to deploy and activate an ember-deploy-s3 compatible Ember app.

To use this script, paste your AWS secret key in a .aws_secret_key file and make sure you ignore .aws_secret_key in your .gitignore file so you don't commit it to your repo.

Your config/deploy.js will look something like this:

module.exports = {
  production: {
    store: {
      type: 'S3',
      accessKeyId: 'ACCESS_KEY_ID',
      secretAccessKey: process.env['AWS_SECRET_KEY'],
      bucket: '',
      hostName: '',
      region: 'us-west-1'

    assets: {
      accessKeyId: 'ACCCESS_KEY_ID',
      secretAccessKey: process.env['AWS_SECRET_KEY'],
      bucket: '',
      region: 'us-west-1'

When you're all set up, you should be able to deploy your app by typing the following in the command line: sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment