forked from adambair/backbone-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.ru
44 lines (33 loc) · 917 Bytes
/
config.ru
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
38
39
40
41
42
43
require "rubygems"
require "bundler"
Bundler.setup
Bundler.require
$:.unshift File.expand_path("../", __FILE__)
require "./lib/api"
require "application"
Sass::Engine::DEFAULT_OPTIONS[:load_paths].tap do |load_paths|
load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
end
map '/assets/img' do
environment = Sprockets::Environment.new
environment.append_path 'assets/img'
run environment
end
map '/assets' do
environment = Sprockets::Environment.new
environment.append_path 'assets/javascripts'
environment.append_path 'assets/stylesheets'
# environment.js_compressor = Uglifier.new(:copyright => false)
# environment.css_compressor = YUI::CssCompressor.new
run environment
end
map '/api' do
run Application::Api
end
map '/' do
configure :development do
require 'rack-livereload'
use Rack::LiveReload
end
run Application::App
end