-
Tyler Lemburg authoredTyler Lemburg authored
config.ru 455 B
require './utils/language'
ENV['RACK_ENV'] ||= 'development'
# load the config file
require './utils/config_loader'
# set up the database connection
require 'utils/database'
# get sinatra and the app
require 'sinatra'
require 'app'
if ENV['RACK_ENV'] == 'development'
# weird workaround for localhost cookie things
set :cookie_options, :domain => nil
else
set :cookie_options, :domain => 'resource.unl.edu'
end
# run it
run Sinatra::Application