Sha256: 5bf474c8338c9f4a80d715be43b1412b5cd6ea7a902de8bf9d35d7b97430cedd
Contents?: true
Size: 435 Bytes
Versions: 6
Compression:
Stored size: 435 Bytes
Contents
#!/bin/bash export HOME="/home/<%= scripts.ec2.params.ssh_user %>" if [ $1 = "ALL_QUEUES" ];then QUEUE=* else QUEUE=$1 fi <% cmd = "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 &" %> <%= with_context({:user => 'www-data'}) { remote_command(cmd) } %>
Version data entries
6 entries across 6 versions & 1 rubygems