#!/bin/bash set -e cd .. unset GIT_DIR git reset --hard export RAILS_ENV=production bundle install --deployment --without="development test" bundle exec rake db:migrate assets:precompile touch tmp/restart.txt # curl http://website.com/ >/dev/null