Skip to content

Instantly share code, notes, and snippets.

@happypeter
Created May 28, 2013 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save happypeter/4f6425afa7527e433cb6 to your computer and use it in GitHub Desktop.
Save happypeter/4f6425afa7527e433cb6 to your computer and use it in GitHub Desktop.
deploy to haoqicat.com
#!/usr/bin/env bash
# before everything, the patch needs to be on master branch already.
ssh -t peter@haoqicat.com '
source ~/.profile && cd ~/apps/onestep && \
git pull && \
bundle && bundle exec rake db:migrate RAILS_ENV=production;\
bundle exec rake assets:precompile;\
touch tmp/restart.txt && echo "done"
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment