Capistrano를 설치했는데 Capistrano가 배치 후 승객을 다시 시작하지 않는 경우를 제외하고는 제대로 작동합니다. 배포 후 Eveytime 서버에 ssh를 입력하고 touch tmp/restart.txt
을 current directory
안에 입력해야합니다. 나는 승객을 다시 시작하는 다른 방법을 시도했지만 아무것도 나를 위해 일하고있다. 난 내 유사 문제와 유래에 코드 조각 위에서 발견 Capistrano가 nginx를 다시 시작하지 않음
namespace :deploy do
task :restart do
on roles(:app) do
within current_path do
execute :touch, 'tmp/restart.txt'
end
end
end
end
third attempt
namespace :deploy do
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
end
second attempt
namespace :deploy do
task :restart do
on roles(:app) do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
end
end
first attempt:
나는 그것은 당신의 deploy:restart
작업이 실행되지 않는 것을 수 Rails 4
(의 nginx + 승객)
안녕 매트 나중에 내'배포 : restart'이 실행되지 않습니다. 나는 일을 마치고 당신의 제안을 시도 할 것이고, 당신을 저녁에 최신 상태로 유지할 것이다. 감사합니다 – Reboot
큰 일을했습니다. 감사. – Reboot