Skip to content

Instantly share code, notes, and snippets.

@benweint
Created February 19, 2013 17:23
Show Gist options
  • Save benweint/4987951 to your computer and use it in GitHub Desktop.
Save benweint/4987951 to your computer and use it in GitHub Desktop.
def start_command(queue, pid)
"cd #{current_path} && RAILS_ENV=#{rails_env} QUEUE=\"#{queue}\" \
PIDFILE=#{pid} BACKGROUND=yes VERBOSE=1 NEWRELIC_DISPATCHER=resque INTERVAL=#{interval} \
#{fetch(:bundle_cmd, "bundle")} exec rake resque:work"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment