Skip to content

Instantly share code, notes, and snippets.

@etagwerker
Created June 27, 2011 05:21
Show Gist options
  • Select an option

  • Save etagwerker/1048347 to your computer and use it in GitHub Desktop.

Select an option

Save etagwerker/1048347 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'logger'
$LOAD_PATH.unshift ::File.expand_path(::File.dirname(__FILE__) + '/lib')
require 'resque/server'
# Set the RESQUECONFIG env variable if you've a `resque.rb` or similar
# config file you want loaded on boot.
if ENV['RESQUECONFIG'] && ::File.exists?(::File.expand_path(ENV['RESQUECONFIG']))
load ::File.expand_path(ENV['RESQUECONFIG'])
end
use Rack::ShowExceptions
run Resque::Server.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment