Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 412 Bytes
require File.expand_path('../config/load', __FILE__)
Service::App.set :run => true,
:environment => :production,
:port => ARGV.first || 8080,
:logging => true
begin
require 'mongrel'
Service::App.set :server, 'mongrel'
rescue LoadError
begin
require 'thin'
Service::App.set :server, 'thin'
rescue LoadError
Service::App.set :server, 'webrick'
end
end
Service::App.run!
Something went wrong with that request. Please try again.