Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v1.0.0
executable file 29 lines (25 sloc) 0.805 kB
#!/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
opts.on("-s", "--stop-words [FILE]", "Path to file containing a list of stop words") do |fn|
File.open(fn) do |file|
Soulmate.stop_words = file.readlines.map{ |l| l.strip }.reject{ |w| w.empty? }
end
end
end
Jump to Line
Something went wrong with that request. Please try again.