Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 342 Bytes
$LOAD_PATH.unshift("#{File.dirname(__FILE__)}/lib")
require "#{File.dirname(__FILE__)}/lib/voting"
Voting::Application.set :run, false
Voting::Application.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 Voting::Application
Something went wrong with that request. Please try again.