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