Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.441 kb
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!
Jump to Line
Something went wrong with that request. Please try again.