Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 363 Bytes
require 'rubygems'
require 'bundler'
Bundler.require
root_dir = File.dirname(__FILE__)
set :environment, :production
set :root, root_dir
set :app_file, File.join(root_dir, 'share.rb')
disable :run
log = File.new(root_dir + "/log/production.log", "a")
STDOUT.reopen(log)
STDERR.reopen(log)
require File.join(root_dir, 'share.rb')
run Sinatra::Application