scripts/resque/resque in standup-0.5.0 vs scripts/resque/resque in standup-0.5.1
- old
+ new
@@ -5,6 +5,6 @@
QUEUE=*
else
QUEUE=$1
fi
-sudo su -l www-data --command "cd /opt/gs && QUEUE=$QUEUE VERBOSE=1 PIDFILE=tmp/pids/resque_$1_$2.pid nohup bundle exec rake environment resque:work >> log/resque_worker_$1_$2.log 2>&1 &"
+sudo -u www-data /usr/local/rvm/bin/rvm-shell -c "cd <%= scripts.webapp.app_path%> && RAILS_ENV=<%= scripts.webapp.params.rails_env%> QUEUE=$QUEUE VERBOSE=1 PIDFILE=tmp/pids/resque_$1_$2.pid nohup bundle exec rake environment resque:work >> log/resque_worker_$1_$2.log 2>&1 &"