Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save perfectfoolish/5573274 to your computer and use it in GitHub Desktop.
Save perfectfoolish/5573274 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
ssh -t [email protected] '
source ~/.bash_login && cd ~/happycasts && \
git pull && \
bundle exec rake db:migrate RAILS_ENV=production; \
bundle && bundle exec rake assets:precompile &&\
touch tmp/restart.txt
'
##
# run .bash_login (or maybe .profile) to make rvm work, otherwise 'bundle command not found'
#
# -t to bring the password prompt, when you use sudo
##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment