ENV['SINATRA_ENV'] ||= 'development'

require 'bundler/setup'
Bundler.require(:default, ENV['SINATRA_ENV'])

if ENV['SINATRA_ENV'] == 'development'
  require_relative '../secrets'
end

configure :development do
  set :database, {adapter: 'sqlite3', database: 'db/database.sqlite3'}
end

require_all 'app/errors'
require_all 'app'