Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 284 Bytes
ENV["RACK_ENV"] ||= "development"
require './app'
set :app_file, File.join(root_path, 'app.rb')
disable :run
#FileUtils.mkdir_p 'log' unless File.exists?('log')
#log = File.new("log/#{RACK_ENV.downcase}.log", "a+")
#$stdout.reopen(log)
#$stderr.reopen(log)
run Sinatra::Application