Skip to content

Instantly share code, notes, and snippets.

@query-string
Created December 18, 2015 08:29
Show Gist options
  • Save query-string/6d59f9e61cb8897f6c1a to your computer and use it in GitHub Desktop.
Save query-string/6d59f9e61cb8897f6c1a to your computer and use it in GitHub Desktop.
Detach a ruby process with Capistrano 3
on roles(:web) do
within "#{fetch(:deploy_to)}/current/" do
with RAILS_ENV: fetch(:rails_env) do
execute :bundle, :exec, "nohup rake slack:listen > /dev/null 2>&1 &", pty: false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment