Sha256: 0de4298313a9000f5bb3a820c8e8955fd4b8c598b384958885906f61c10d4a16

Contents?: true

Size: 586 Bytes

Versions: 14

Compression:

Stored size: 586 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
begin
  require 'vegas'
rescue LoadError
  require 'rubygems'
  require 'vegas'
end  
require 'resque/server'


Vegas::Runner.new(Resque::Server, 'resque-web', {
  :before_run => lambda {|v|
    path = (ENV['RESQUECONFIG'] || v.args.first)
    load path.to_s.strip if path
  }
}) do |runner, opts, app|
  opts.on('-N NAMESPACE', "--namespace NAMESPACE", "set the Mongo database") {|namespace|
    runner.logger.info "Using Mongo database '#{namespace}'"
    Resque.mongo_db= namespace
  }
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
resque-igo-1.12.8 bin/resque-web
resque-igo-1.12.7 bin/resque-web
resque-igo-1.12.6 bin/resque-web
resque-igo-1.12.5 bin/resque-web
resque-igo-1.12.4 bin/resque-web
resque-igo-1.12.3 bin/resque-web
resque-igo-1.12.2 bin/resque-web
resque-igo-1.12.1 bin/resque-web
resque-igo-1.1.5 bin/resque-web
resque-igo-1.1.4 bin/resque-web
resque-igo-1.1.3 bin/resque-web
resque-igo-1.1.2 bin/resque-web
resque-igo-1.1.1 bin/resque-web
resque-igo-1.1 bin/resque-web