Created
April 27, 2013 01:59
-
-
Save perfectfoolish/5471589 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
#!/bin/sh | |
ssh -t haoqicat.com " | |
. .profile | |
cd /home/peter/apps/onestep/ | |
git pull | |
bundle | |
rake db:migrate RAILS_ENV=production | |
rake assets:precompile | |
sudo apachectl graceful | |
" | |
# to load your rails project after you restart your apache, try maybe: | |
# http://spin.atomicobject.com/2012/12/21/using-zeus-to-pre-load-ruby-on-rails-environments/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment