Last active
October 10, 2015 04:38
-
-
Save happypeter/3634487 to your computer and use it in GitHub Desktop.
deploy happycasts on my linode vps
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 | |
ssh -t [email protected] ' | |
source ~/.bash_login && cd ~/happycasts && \ | |
git pull && \ | |
bundle exec rake db:migrate RAILS_ENV=production; \ | |
bundle && bundle exec rake assets:precompile &&\ | |
touch tmp/restart.txt | |
' | |
## | |
# run .bash_login (or maybe .profile) to make rvm work, otherwise 'bundle command not found' | |
# | |
# -t to bring the password prompt, when you use sudo | |
## |
capistrano 还没学会呢 😄
七个月过去了,中间用了 capistrano 一段时间,感觉好麻烦。所以最终切换回了脚本这种傻瓜透明的方式。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我觉的要向多个服务器部署的时候 capistrano 会比较有用,不然用一个脚本好像也没什么麻烦。