2009-11-29 9 views
0

Capistrano는 차가움을 배포하고 업데이트를 배포하고 심볼릭 링크를 정상적으로 업로드합니다. 그러나 다시 시작하지는 않습니다.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

배포 환경이 무엇입니까? 여객 (아파치)와 나는 같은 것을 가지고 카피 스트라 노 3에 대한 업데이트 된 답변으로

 

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

감사합니다! 그것 때문에 이미 시간이 절약되었습니다. –

1

을 여기 여객에서 실행 내가 현재 할 것입니다 :

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 
관련 문제