gem install juicer 压缩静态文件

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 里的部分代码。

Ruby代码 复制代码

  1. task :after_update_code, :roles => :app do
  2.   run "cp -rf #{release_path}/config/staging/* #{release_path}/config"
  3.   run "rm -rf #{release_path}/public/user"
  4.   run "ln -s #{shared_path}/user #{release_path}/public/user"
  5.   run "cd #{release_path} && rake RAILS_ENV=#{rails_env} asset:packager:build_all"
  6. 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

http://cn.oiax.jp/

原文地址:https://www.cnblogs.com/lexus/p/1910963.html