2009-11-29 69 views
0

Capistrano正在部署冷,部署更新並上傳符號鏈接罰款。但它不會重新啓動。Capistrano未重新啓動

我注意到/ script/process/reaper文件上的權限被拒絕。我發現a suggestion暗示文件需要更新的權限。有人對此有經驗嗎?

Macintosh-5:barcoden fogonthedowns$ cap deploy:restart 
    * executing `deploy:restart' 
    * executing "/home/fogonthedowns/owens.fogonthedowns.com/current/script/process/reaper" 
    servers: ["owens.fogonthedowns.com"] 
Password: 
    [owens.fogonthedowns.com] executing command 
** [out :: owens.fogonthedowns.com] sh: /home/fogonthedowns/owens.fogonthedowns.com/current/script/process/reaper: Permission denied 
    command finished 
failed: "sh -c \"/home/fogonthedowns/owens.fogonthedowns.com/current/script/process/reaper\"" on owens.fogonthedowns.com 
Macintosh-5:barcoden fogonthedowns$ 

回答

0

什麼是您的部署環境?客運(阿帕奇)我有類似:

 

    task :restart, :roles => :app, :except => { :no_release => true } do 
    run "touch #{current_path}/tmp/restart.txt" 
    end 
 
+0

謝謝!它已經節省了我的時間。 – 2009-12-04 02:47:37

1

作爲一個更新的答案,因爲Capistrano的3乘客跑這裏是我目前做的:

task :restart do 
    on roles(:app), in: :sequence, wait: 5 do 
     # If your tmp folder does not exist yet, uncomment the 
     # line below to create it. 
     # execute :mkdir, "#{File.join(current_path,'tmp')}" 
     execute :touch, "#{File.join(current_path,'tmp','restart.txt')}" 
    end 
end