Permalink
Switch branches/tags
wtsi_portal-staging-2011-05-17.2 wtsi_portal-staging-2011-05-17.1 wtsi_portal-staging-2011-05-04.2 wtsi_portal-staging-2011-05-04.1 wtsi_portal-staging-2011-04-20.1 wtsi_portal-staging-2011-04-19.1 wtsi_portal-staging-2011-04-14.1 wtsi_portal-staging-2011-04-13.2 wtsi_portal-staging-2011-04-13.1 wtsi_portal-staging-2011-02-18.2 wtsi_portal-staging-2011-02-18.1 wtsi_portal-staging-2011-02-10.1 wtsi_portal-production-2011-05-04.2 wtsi_portal-production-2011-05-04.1 wtsi_portal-production-2011-04-20.1 wtsi_portal-production-2011-04-19.1 ikmc_portal-staging-2011-06-10.1 ikmc_portal-staging-2011-05-06.1 ikmc_portal-staging-2011-05-03.1 ikmc_portal-staging-2011-04-28.2 ikmc_portal-staging-2011-04-28.1 ikmc_portal-staging-2011-04-20.1 ikmc_portal-staging-2011-04-18.1 ikmc_portal-staging-2011-04-15.1 ikmc_portal-staging-2011-04-14.1 ikmc_portal-staging-2011-04-01.1 ikmc_portal-staging-2011-03-31.1 ikmc_portal-staging-2011-02-22.1 ikmc_portal-staging-2011-02-21.1 ikmc_portal-staging-2011-02-14.3 ikmc_portal-staging-2011-02-14.2 ikmc_portal-staging-2011-02-14.1 ikmc_portal-staging-2011-02-10.1 ikmc_portal-staging-2011-01-26.1 ikmc_portal-staging-2011-01-25.4 ikmc_portal-staging-2011-01-25.3 ikmc_portal-staging-2011-01-25.2 ikmc_portal-staging-2011-01-25.1 ikmc_portal-staging-2011-01-21.1 ikmc_portal-staging-2011-01-20.1 ikmc_portal-staging-2011-01-18.1 ikmc_portal-staging-2011-01-06.2 ikmc_portal-staging-2011-01-06.1 ikmc_portal-staging-2011-01-05.1 ikmc_portal-production-2011-05-06.1 ikmc_portal-production-2011-05-03.1 ikmc_portal-production-2011-04-20.1 ikmc_portal-production-2011-04-18.1 ikmc_portal-production-2011-04-15.1 ikmc_portal-production-2011-04-14.1 ikmc_portal-production-2011-04-01.1 ikmc_portal-production-2011-03-31.1 ikmc_portal-production-2011-02-22.1 ikmc_portal-production-2011-02-21.1 ikmc_portal-production-2011-02-14.3 ikmc_portal-production-2011-02-14.2 ikmc_portal-production-2011-02-10.1 ikmc_portal-production-2011-01-26.1 ikmc_portal-production-2011-01-25.4 ikmc_portal-production-2011-01-06.2 ikmc_portal-production-2011-01-06.1
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 29 lines (20 sloc) 659 Bytes
#! /usr/bin/env ruby
# encoding: utf-8
require 'optparse'
options = {
:bind => '0.0.0.0',
:port => 3000
}
OptionParser.new do |opts|
opts.banner = "Usage: server [options]"
opts.on("-b", "--binding [HOST]", String, "Binds MartSearch to the specified ip. (Default is 0.0.0.0)") do |address|
options[:bind] = address
end
opts.on("-p", "--port [PORT]", Integer, "Runs MartSearch on the specified port. (Default is 3000)") do |port|
options[:port] = port
end
end.parse!
# Add the lib directory to the search path
$:.unshift( "#{File.expand_path(File.dirname(__FILE__))}/../lib" )
require 'martsearch'
MartSearch::Server.run! options