radar/twist-v2

View on GitHub
backend/config.ru

Summary

Maintainability
Test Coverage
require './config/environment'
if ENV['BUGSNAG_API_KEY']
  require 'bugsnag'

  Bugsnag.configure do |config|
    config.api_key = ENV['BUGSNAG_API_KEY']
  end

  use Bugsnag::Rack
end

if ENV['APP_ENV'] == "development"
  use Rack::Static, urls: ["/uploads"], root: "public"
end

use Rack::CommonLogger
run Twist::Web::App