Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 359 Bytes
require 'rubygems'
require 'sinatra'
require 'server'
root_dir = File.dirname(__FILE__)
set :environment, :development
set :root, root_dir
set :app_file, File.join(root_dir, 'server.rb')
disable :run
FileUtils.mkdir_p 'log' unless File.exists?('log')
log = File.new("log/sinatra.log", "a")
$stdout.reopen(log)
$stderr.reopen(log)
run Sinatra::Application
Something went wrong with that request. Please try again.