Skip to content

Instantly share code, notes, and snippets.

@happypeter
Created May 28, 2013 03:39
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