RichGuk (owner)

Revisions

gist: 184847 Download_button fork
public
Public Clone URL: git://gist.github.com/184847.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
require '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