Sha256: b7ac4e29e3d381901179ea6b1ff497d9ccfab7ed056375341979e42e8e4c1d5d

Contents?: true

Size: 596 Bytes

Versions: 94

Compression:

Stored size: 596 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 Redis namespace") {|namespace|
    runner.logger.info "Using Redis namespace '#{namespace}'"
    Resque.redis.namespace = namespace
  }
end

Version data entries

94 entries across 94 versions & 6 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.7.4 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.7.3 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.7.2 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.7.1 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.7.0 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.6.9 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.6.8 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.6.7 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.6.6 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.6.5 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.6.4 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.6.3 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.6.2 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.6.1 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.6.0 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.5.17 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.5.16 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.5.15 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web
classiccms-0.5.14 vendor/bundle/gems/resque-mongo-1.9.8.1/bin/resque-web