Skip to content

Instantly share code, notes, and snippets.

@tyler-smith
Created October 26, 2012 17:41
Show Gist options
  • Save tyler-smith/3960157 to your computer and use it in GitHub Desktop.
Save tyler-smith/3960157 to your computer and use it in GitHub Desktop.
Run a Rails 2.3 server with Resque Server
#\ -p 3000
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
require 'config/environment'
require 'resque'
require 'resque/server'
app = Rack::Builder.new do
use Rails::Rack::Static
use Rails::Rack::LogTailer
map "/" do
run ActionController::Dispatcher.new
end
map "/resque" do
run Resque::Server.new
end
end.to_app
run app
# Run from cmd line with "rackup resque.ru"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment