Sha256: 41901a271aed3dc23e47b52d06b5a7814f7fa4cc403053af1c3a77696607013c
Contents?: true
Size: 610 Bytes
Versions: 34
Compression:
Stored size: 610 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 'rewritten/server' Vegas::Runner.new(Rewritten::Server, 'rewritten-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}'" Rewritten.redis.namespace = namespace } end
Version data entries
34 entries across 34 versions & 1 rubygems