カピストラーノが再起動しない
-
08-07-2019 - |
質問
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$
解決
展開環境は何ですか? Passenger(Apache)の場合:
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{current_path}/tmp/restart.txt"
end
他のヒント
最新の回答として、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
独自のサポートフォーラムがありますので、試してみてください。 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