http://blog.itech-sense.com/content/?p=37
使用Capistrano部署apache+mongrel cluster 收藏
这篇也很重要对 capistrano中的一些方法进行了重写 http://blog.csdn.net/pwlazy/archive/2007/11/23/1899731.aspx
相当的有意义,关于soft link
http://www.javaeye.com/topic/212689
把实际文件存在 shared 目录下,每次发布后在 current/public 下创建一个指向实际头像目录的符号链接。以下是我的 deploy.rb 里的部分代码。
- task :after_update_code, :roles => :app do
- run "cp -rf #{release_path}/config/staging/* #{release_path}/config"
- run "rm -rf #{release_path}/public/user"
- run "ln -s #{shared_path}/user #{release_path}/public/user"
- run "cd #{release_path} && rake RAILS_ENV=#{rails_env} asset:packager:build_all"
- end
http://cn.oiax.jp/rails/capistrano/deploy_rollback_and_cleanup.html
天狗文档useful
可伸缩的高性能 Rails 应用程序开发和部署实践
http://www.ibm.com/developerworks/cn/web/1003_yekai_railsarch/index.html
10.3.3 Cap + Apache proxy + mongrel
http://book.51cto.com/art/200807/81194.htm
rails tutorial