0

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$ 
4

4 回答 4

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
于 2014-01-14T21:19:35.630 回答
0

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

于 2009-11-30T09:41:38.420 回答
0

Rails 2.3 不再附带旧的 reaper 脚本。 http://www.capify.org/index.php/How_to_use_Capistrano_with_Rails_2.3

于 2009-11-30T19:41:45.083 回答
0

你的部署环境是什么?对于Passenger(Apache),我有类似的东西:


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

于 2009-12-01T03:43:15.330 回答