Skip to content

Instantly share code, notes, and snippets.

@perfectfoolish
Created April 27, 2013 01:59
Show Gist options
  • Save perfectfoolish/5471589 to your computer and use it in GitHub Desktop.
Save perfectfoolish/5471589 to your computer and use it in GitHub Desktop.
#!/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