lib/capistrano/node-deploy.rb in capistrano-node-deploy-1.0.6 vs lib/capistrano/node-deploy.rb in capistrano-node-deploy-1.0.7

- old
+ new

@@ -24,9 +24,10 @@ Capistrano::Configuration.instance(:must_exist).load do |configuration| before "deploy", "deploy:create_release_dir" before "deploy", "node:check_upstart_config" after "deploy:symlink", "node:install_packages" after "deploy:symlink", "node:restart" + after "deploy:rollback", "node:restart" package_json = MultiJson.load(File.open("package.json").read) rescue {} set :application, package_json["name"] unless defined? application set :app_command, package_json["main"] || "index.js" unless defined? app_command \ No newline at end of file