-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.ru
More file actions
29 lines (25 loc) · 773 Bytes
/
config.ru
File metadata and controls
29 lines (25 loc) · 773 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
#\ -s puma
require 'sprockets'
map '/assets' do
environment = Sprockets::Environment.new
environment.append_path 'public/assets/stylesheets'
environment.append_path 'public/assets/javascripts'
environment.append_path 'public/assets/images'
environment.append_path 'public/assets/fonts'
environment.js_compressor = :uglify
environment.css_compressor = :scss
run environment
end
use Rack::Static,
:urls => ["/sponsorship_prospectus.pdf", "/coc.html", "/newsletter-5-aug.html", "/newsletter-7-aug.html", "/assets/bower_components/jquery/dist"],
:root => "public"
run lambda { |env|
[
200,
{
'Content-Type' => 'text/html',
'Cache-Control' => 'public, max-age=86400'
},
File.open('public/index.html', File::RDONLY)
]
}