Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 496 Bytes
require 'rubygems'
root_dir = File.dirname(__FILE__)
require File.join(root_dir, "lib", "chainsaw")
Chainsaw::WebApp.class_eval do
set :environment, (ENV["RACK_ENV"] || :production).to_sym
set :root, root_dir
set :app_file, File.join(root_dir, "lib", "chainsaw", "web_app.rb")
end
disable :run
log_dir = File.join(root_dir, "log")
FileUtils.mkdir_p(log_dir)
log = File.open(File.join(log_dir, "web-app.log"), "a")
$stdout.reopen(log)
$stderr.reopen(log)
run Chainsaw::WebApp
Jump to Line
Something went wrong with that request. Please try again.