lib/capistrano/node-deploy.rb in capistrano-node-deploy-1.0.1 vs lib/capistrano/node-deploy.rb in capistrano-node-deploy-1.0.2
- old
+ new
@@ -66,9 +66,9 @@
sudo "stop #{application}"
end
desc "Restart the node application"
task :restart do
- sudo "restart #{application}"
+ sudo "restart #{application} || sudo start #{application}"
end
end
end
\ No newline at end of file