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

- old
+ new

@@ -11,10 +11,10 @@ respawn respawn limit 99 5 script - exec sudo -u {{user}} NODE_ENV=production {{node_binary}} {{current_path}}/{{app_command}} 2>&1 >> {{shared_path}}/{{application}}.log + exec su -c 'NODE_ENV=production {{node_binary}} {{current_path}}/{{app_command}}' deploy 2>&1 >> {{shared_path}}/{{application}}.log end script EOD def remote_file_exists?(full_path) 'true' == capture("if [ -e #{full_path} ]; then echo 'true'; fi").strip \ No newline at end of file