Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

How do we restart just one program using capistrano? #2

Open
prcongithub opened this Issue · 1 comment

2 participants

@prcongithub

I have multiple programs managed by supervisor on my server. While deploying app, I want to restart just that one app and not all the applications managed by supervisor.

@yyuu
Owner

Currently, there is no way to restart an application service in supervisord. IMHO, override deploy:restar task to control service via supervisorctl might help you in this case.

# In "config/deploy.rb"
require "capistrano-supervisord"

# Override `deploy:restart` task
namespace(:deploy) do
  task(:restart, :roles => :app) do
    run("#{sudo} supervisorctl restart #{application}")
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.