Created
October 26, 2012 17:41
-
-
Save tyler-smith/3960157 to your computer and use it in GitHub Desktop.
Run a Rails 2.3 server with Resque Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#\ -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