Skip to content

Instantly share code, notes, and snippets.

@KamilLelonek
Created July 14, 2014 10:39
Show Gist options
  • Save KamilLelonek/0f1f4657bcffe143ab83 to your computer and use it in GitHub Desktop.
Save KamilLelonek/0f1f4657bcffe143ab83 to your computer and use it in GitHub Desktop.
Upstart deployment
namespace :deploy do
after :publishing, :restart do
on roles(:app) do
within release_path do
execute :sudo, "cp -f #{release_path}/my_config.conf /etc/init/"
execute :sudo, 'initctl restart my_service'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment