还是记录一下吧。。。capistrano for Rails3
参考这个文章:
http://stackoverflow.com/questions/4294970/rails-3-capistrano-tutorial-to-deploy-to-server-using-git
http://www.aaginskiy.com/technology/2011/02/deploying-rails-3-apps-with-capistrano/
1. vim Gemfile, 增加:
gem 'capistrano'
2. $ bundle install
3. $ capify .
会生成两个文件: Capfile , config/deploy.rb
4. 编辑后者,然后 $ cap deploy.