Capistrano는 다시 시작하지 않습니다
-
08-07-2019 - |
문제
Capistrano는 Cold를 배포하고 업데이트를 배포하고 Symlink Fine을 업로드하고 있습니다. 그러나 다시 시작되지는 않습니다.
/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$
해결책
배포 환경은 무엇입니까? 승객 (Apache)과 함께 다음과 같은 것이 있습니다.
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{current_path}/tmp/restart.txt"
end
다른 팁
업데이트 된 답변으로, Capistrano 3 승객에서 달리는 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/
Rails 2.3은 더 이상 이전 리퍼 스크립트와 함께 배송되지 않습니다.http://www.capify.org/index.php/how_to_use_capistrano_with_rails_2.3
제휴하지 않습니다 StackOverflow