Sha256: 3f7d08353fac99bc311b078e0cf3acf503f37d844dbe4edd7443139dcd0b2194
Contents?: true
Size: 1.61 KB
Versions: 5
Compression:
Stored size: 1.61 KB
Contents
#!/usr/bin/env ruby __DIR__ = File.expand_path(File.dirname(__FILE__)) if `which rackup`.empty? abort "** Can't find `rackup` in PATH." end if ARGV.include?('-h') puts <<-usage Usage: resque-web [ruby options] [rack options] [resque config] Starts a Resque front-end by way of `rackup`. Ruby options: -e, --eval LINE evaluate a LINE of code -d, --debug set debugging flags (set $DEBUG to true) -w, --warn turn warnings on for your script -I, --include PATH specify $LOAD_PATH (may be used more than once) -r, --require LIBRARY require the library, before executing your script Rack options: -s, --server SERVER serve using SERVER (webrick/mongrel) -o, --host HOST listen on HOST (default: 0.0.0.0) -p, --port PORT use PORT (default: 9292) -E, --env ENVIRONMENT use ENVIRONMENT for defaults (default: development) -D, --daemonize run daemonized in the background -P, --pid FILE file to store PID (default: rack.pid) Common options: -h, --help Show this message --version Show version usage else if !ENV['CONFIG']&&ARGV[-1]&&ARGV[-1][0]!=?-&&(ARGV[-2]?ARGV[-2][0]!=?-:true) if File.file?(file = File.expand_path(ARGV[-1])) ARGV.delete_at(-1) ENV['CONFIG'] = file else abort "** Can't find #{file}" end end args = ARGV ENV['RUBYLIB'] = ENV['RUBYLIB'].to_s + ':' + __DIR__ + '/../lib' args.unshift '-e', 'require "resque";load ENV["CONFIG"] if ENV["CONFIG"]' args.push File.expand_path(File.dirname(__FILE__) + "/../config.ru") exec "rackup", *args end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
resque-1.2.0 | bin/resque-web |
jerefrer-resque-1.1.0 | bin/resque-web |
resque-1.1.0 | bin/resque-web |
resque-1.0.0 | bin/resque-web |
resque-0.2.0 | bin/resque-web |