Sha256: 936559793cffdf38c99ff69dc6a52f4fe409b89321cb08372de34e9de0f9ca6c
Contents?: true
Size: 583 Bytes
Versions: 8
Compression:
Stored size: 583 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 'soulmate/server' Vegas::Runner.new(Soulmate::Server, 'soulmate-web', { :before_run => lambda {|v| # path = (ENV['RESQUECONFIG'] || v.args.first) # load path.to_s.strip if path } }) do |runner, opts, app| opts.on("-r", "--redis [HOST:PORT]", "Redis connection string") do |host| runner.logger.info "Using Redis connection string '#{host}'" Soulmate.redis = host end end
Version data entries
8 entries across 8 versions & 1 rubygems