Capistrano正在部署冷,部署更新并上传符号链接。然而,它不会重新启动。

我注意到/ script / process / reaper文件中的权限被拒绝。我发现建议暗示文件需要更新权限。有没有人有这方面的经验?

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$ 
有帮助吗?

解决方案

您的部署环境是什么?使用Passenger(Apache)我有类似的东西:


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

其他提示

作为更新的答案,对于在Passenger上运行的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

他们有自己的支持论坛,也许你应该尝试一下。 http://groups.google.co.uk/group/capistrano/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top