Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
12 lines (8 sloc) 0.262 kB
require File.join(File.dirname(__FILE__), 'application')
set :run, false
set :environment, :production
FileUtils.mkdir_p 'log' unless File.exists?('log')
log = File.new("log/sinatra.log", "a+")
$stdout.reopen(log)
$stderr.reopen(log)
run Sinatra::Application
Jump to Line
Something went wrong with that request. Please try again.