简体   繁体   English

Capistrano无法重新启动

[英]Capistrano not restarting

Capistrano is deploying cold, deploying updates and uploading the symlink fine. Capistrano正在冷部署,部署更新并正确上传了符号链接。 It will not however restart. 但是,它不会重新启动。

I notice that permission is denied on the /script/process/reaper file. 我注意到/ script / process / reaper文件上的权限被拒绝。 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.fogonthedowns.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: 作为更新的答案,对于正在“乘客”上运行的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

They have their own support forums, maybe you should try there. 他们有自己的支持论坛,也许您应该尝试那里。 http://groups.google.co.uk/group/capistrano/ http://groups.google.co.uk/group/capistrano/

Rails 2.3 no longer ships with the old reaper scripts. Rails 2.3不再附带旧的收割者脚本。 http://www.capify.org/index.php/How_to_use_Capistrano_with_Rails_2.3 http://www.capify.org/index.php/How_to_use_Capistrano_with_Rails_2.3

What is your deployment environment? 您的部署环境是什么? With Passenger (Apache) I have something like: 对于Passenger(Apache),我有类似以下内容:


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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM