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 :(得分:1)
作为更新的答案,对于在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
答案 1 :(得分:0)
他们有自己的支持论坛,也许你应该尝试一下。 http://groups.google.co.uk/group/capistrano/
答案 2 :(得分:0)
Rails 2.3不再附带旧收割机脚本。 http://www.capify.org/index.php/How_to_use_Capistrano_with_Rails_2.3
答案 3 :(得分:0)
您的部署环境是什么?使用Passenger(Apache)我有类似的东西:
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{current_path}/tmp/restart.txt"
end