# Run like this:
#
#     $ resqued example/minimal.rb

before_fork do
  host = ENV['REDIS_HOST'] || 'localhost'
  port = ENV['REDIS_PORT'] || 6379
  Resque.redis = Redis.new(:host => host, :port => port)
end

worker 'resqued-example-queue'

# Run like this:
#
#     $ resqued example/minimal.rb

before_fork do
  host = ENV['REDIS_HOST'] || 'localhost'
  port = ENV['REDIS_PORT'] || 6379
  Resque.redis = Redis.new(:host => host, :port => port)
end

worker_pool 1
queue 'resqued-example-queue'

Use a worker pool in the example, so that it's really easy to scale up.
Use a worker pool in the example, so that it's really easy to scale up.
