2012-07-26 93 views

回答

4

帽任務列表: http://capitate.rubyforge.org/recipes/deploy.html

要覆蓋任務,做這樣的事情:

namespace :deploy do 
    task :start do ; end 
    task :stop do ; end 
    task :restart do ; end 
    task :update_code do ; end #override this task to prevent capistrano to upload on servers 
    task :symlink do ; end #don't create the current symlink to the last release 
end 
+0

哪裏是覆蓋任務的正確位置? lib/capistrano/tasks/task_name.cap或Capfile或config/deploy.rb? – csi 2014-07-15 15:33:09

相關問題