forked from exercism/exercism
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ru
More file actions
37 lines (27 loc) · 766 Bytes
/
config.ru
File metadata and controls
37 lines (27 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$:.unshift File.expand_path("./../lib", __FILE__)
require 'bundler'
Bundler.require
require 'app'
require 'api'
require 'sass/plugin/rack'
use Sass::Plugin::Rack
Sass::Plugin.options[:template_location] = "./lib/redesign/public/stylesheets/"
Sass::Plugin.options[:css_location] = "./lib/redesign/public/css"
ENV['RACK_ENV'] ||= 'development'
key = ENV['NEW_RELIC_LICENSE_KEY']
if key
NewRelic::Agent.manual_start(license_key: key)
end
if ENV['RACK_ENV'].to_sym == :development
require 'new_relic/rack/developer_mode'
use NewRelic::Rack::DeveloperMode
end
use ActiveRecord::ConnectionAdapters::ConnectionManagement
run ExercismWeb::App
map '/api/v1/' do
run ExercismAPI::App
end
require 'redesign'
map '/redesign/' do
run ExercismIO::Redesign
end