Created
March 31, 2014 11:45
-
-
Save peterhellberg/9890555 to your computer and use it in GitHub Desktop.
Capistrano 3 and Foreman: Fix upstart exports to stop jobs correctly under upstart 0.6.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :foreman do | |
# See https://github.com/ddollar/foreman/issues/97 | |
desc "Fix upstart exports to stop jobs correctly" | |
task :fix_upstart_export do | |
on roles(:app) do | |
execute :sed, "-i.bak 's/ -c / --session-command /' #{shared_path}/etc/init/application-web-1.conf" | |
execute :sed, "-i.bak 's/ -c / --session-command /' #{shared_path}/etc/init/application-worker-1.conf" | |
end | |
end | |
end | |
after 'foreman:export', 'foreman:fix_upstart_export' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment