开发者

Capistrano not restarting

Capistrano is deploying cold, deploying updates and uploading the symlink fine. It will not however restart.

I notice that permission is denied on the /script/process/reaper file. I have found a suggestion implying the file needs updated permissions. Does anyone have experience with this?

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.f开发者_StackOverflow中文版ogonthedowns.com/current/script/process/reaper\"" on owens.fogonthedowns.com
Macintosh-5:barcoden fogonthedowns$ 


As an updated answer, for Capistrano 3 running on Passenger here is what I currently do:

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


What is your deployment environment? With Passenger (Apache) I have something like:


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


They have their own support forums, maybe you should try there. http://groups.google.co.uk/group/capistrano/


Rails 2.3 no longer ships with the old reaper scripts. http://www.capify.org/index.php/How_to_use_Capistrano_with_Rails_2.3

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜