2. To restart the app with capistrano 2 add the following to your config/deploy.rb file:
namespace :deploy do
task :restart, :roles => :app, :except => { :no_release => true } do
sudo "passenger-config restart-app --ignore-app-not-running /srv/
end
end
https://github.com/railsmachine/moonshine/pull/240