-
Notifications
You must be signed in to change notification settings - Fork 507
Using Padrino With Resque
Gianfranco Palumbo edited this page Nov 2, 2013
·
3 revisions
If you want to use the awesome Resque with Padrino, you only need to add gem 'resque'
to your Gemfile and edit config.ru like the following:
#!/usr/bin/env rackup
# encoding: utf-8
# This file can be used to start Padrino,
# just execute it from the command line.
require File.expand_path("../config/boot.rb", __FILE__)
require 'resque/server'
run Rack::URLMap.new \
"/" => Padrino.application,
"/resque" => Resque::Server.new
You'll also want to create a Rakefile with the following:
require 'resque/tasks'
This means that you'll have to use rake
for Resque and padrino rake
for Padrino, but it's a start.