Skip to content

Instantly share code, notes, and snippets.

@j138
Created January 20, 2017 04:52
Show Gist options
  • Save j138/9a39fba0f563ce26b39f620c5c60cd76 to your computer and use it in GitHub Desktop.
Save j138/9a39fba0f563ce26b39f620c5c60cd76 to your computer and use it in GitHub Desktop.
#!/bin/sh
DEPLOY_ENV=$1
if [ $# -eq 1 ]
then
DEPLOY_ENV=$1
else
DEPLOY_ENV="staging"
fi
cd /usr/local/app/moebius/current
bundle exec cap $DEPLOY_ENV deploy
bundle exec cap $DEPLOY_ENV unicorn:reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment