Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 441 Bytes
require File.expand_path('../config/load', __FILE__)
Service::App.set :run => true,
:environment => :production,
:port => ARGV.first || 8080,
:logging => true
HOSTNAME = `hostname`.chomp
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!