cd app_dir capify . vi config/deploy.rb set :application, "demo" set :deploy_to, "/path/to/your/app/dir" set :scm, :subversion set :user, "user_for_deploy" # cap deploy # This calls both `update' and `restart' # cap deploy:update # This calls both `update_code' or `symlink' # cap deploy:update_code # get source from repository, and call finalize_update # cap finalize_update # This create 3 symbol links [ public, tmp, log ] # cap deploy:restart # This works by calling the script/process/reaper # 如果不是Rails应用,需要覆盖下面2个方法 namespace :deploy do task :finalize_udpate do end task :restart do end end
2010年4月5日星期一
release tool - capistrano
Capistrano 是一个基于Rails开发部署工具。原本是主要为Rails应用使用。现在已经比较通用,不光在Rails应用中可以用。
订阅:
博文评论 (Atom)
没有评论:
发表评论