-
-
Save perfectfoolish/5573282 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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