link-share/config/init.rb

20 lines
411 B
Ruby
Raw Normal View History

2015-07-21 10:33:31 -04:00
require 'rubygems'
require 'bundler'
require 'bundler/setup'
require 'sinatra/config_file'
require 'sinatra/json'
Bundler.require
2016-10-05 20:56:09 -04:00
Dotenv.load
2015-07-21 10:33:31 -04:00
set :root, File.dirname('..')
require_relative 'environments'
require_relative '../models/link'
require_relative '../helpers/application_helper'
2016-10-05 20:56:09 -04:00
require_relative '../lib/sms_notifier'
2015-07-21 10:33:31 -04:00
config_file 'config/app.yml'
use Rack::Session::Cookie, secret: settings.secret