Skip to content

Instantly share code, notes, and snippets.

@happypeter
Last active October 10, 2015 04:38
Show Gist options
  • Save happypeter/3634487 to your computer and use it in GitHub Desktop.
Save happypeter/3634487 to your computer and use it in GitHub Desktop.
deploy happycasts on my linode vps
#!/usr/bin/env bash
ssh -t peter@happycasts.net '
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
##
@happypeter
Copy link
Author

七个月过去了,中间用了 capistrano 一段时间,感觉好麻烦。所以最终切换回了脚本这种傻瓜透明的方式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment