-
-
Save happypeter/4f6425afa7527e433cb6 to your computer and use it in GitHub Desktop.
deploy to haoqicat.com
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 | |
# 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