-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ru
35 lines (34 loc) · 871 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
map '/' do
require './app'
run Sinatra::Application
end
#map '/assets' do
# require 'sprockets'
# require 'yui/compressor'
#
# class MySprocketsEnv < Sprockets::Environment
# def call(env)
# @request= Rack::Request.new(env)
# eval("self.context_class.class_eval do
# attr_accessor :platform_string
# def initialize(*args)
# @platform_string= '#{@request.user_agent}'
# super
# end
# end")
# self.cache= false
# super
# end
# end
# env = MySprocketsEnv.new
# #env = Sprockets::Environment.new
# env.append_path 'app/javascripts'
# env.append_path 'app/stylesheets'
# env.append_path 'app/images'
# if production?
# # Compress ALL the assets in production.
# env.js_compressor = YUI::JavaScriptCompressor.new
# #env.css_compressor = YUI::CssCompressor.new
# end
# run env
#end