IT61/it61-rails

View on GitHub
bin/deploy

Summary

Maintainability
Test Coverage
#!/bin/sh

# Run this script to deploy the app to Heroku.

set -e

branch="$(git symbolic-ref HEAD --short)"
target="${1:-staging}"

git push "$target" "$branch:master"
heroku run rake db:migrate --exit-code --remote "$target"
heroku restart --remote "$target"