diff --git a/config/deploy/production.rb b/config/deploy/production.rb index 951156fb..41cd894b 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -58,7 +58,8 @@ namespace :deploy do end task :restart, :roles => :app, :except => { :no_release => true } do - sudo "restart #{application} || sudo start #{application}" + sudo "stop #{application}" + sudo "start #{application}" end task :create_deploy_to_with_sudo, :roles => :app do