Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (24 sloc) 0.732 kb
8ec156a3 » seancribbs
2012-09-13 WIP
1 $: << 'lib'
2 require 'rubygems'
3 require 'bundler'
4
5 Bundler.require
6
7 require 'giddyup'
8 require 'rack/static'
11175183 » seancribbs
2013-03-28 Update the bundler lockfile, cleanup ws in Rakefile, add deflater in …
9 require 'rack/deflater'
50b6a300 » cmeiklejohn
2012-09-13 Rewrite / to index.
10 require 'rack-rewrite'
9d0e0771 » cmeiklejohn
2012-09-13 Add rake pipeline.
11 require 'rake-pipeline'
12 require 'rake-pipeline/middleware'
8ec156a3 » seancribbs
2012-09-13 WIP
13
13d85791 » seancribbs
2012-12-17 Add .woff to the known MIME_TYPES
14 Rack::Mime::MIME_TYPES['.woff'] = 'application/x-font-woff'
15
50b6a300 » cmeiklejohn
2012-09-13 Rewrite / to index.
16 use Rack::Rewrite do
17 rewrite %r{^(.*)\/$}, '$1/index.html'
3d66b70d » seancribbs
2013-03-27 Big assets dump, loads, displays minimally.
18 rewrite %r{^(.*)\/img\/(.*)$}, '$1/images/$2' # Hack for bootstrap
50b6a300 » cmeiklejohn
2012-09-13 Rewrite / to index.
19 end
20
11175183 » seancribbs
2013-03-28 Update the bundler lockfile, cleanup ws in Rakefile, add deflater in …
21 if ENV['RACK_ENV'] == 'production'
22 use Rack::Deflater
23 else
24dfbd8e » seancribbs
2013-02-08 Don't activate the pipeline middleware in production. We precompile.
24 use Rake::Pipeline::Middleware, "Assetfile"
25 end
11175183 » seancribbs
2013-03-28 Update the bundler lockfile, cleanup ws in Rakefile, add deflater in …
26
27 use Rack::Static, :urls => ["/index.html", "/favicon.ico", "/stylesheets",
28 "/javascripts", "/images", "/fonts"],
29 :root => "public"
8ec156a3 » seancribbs
2012-09-13 WIP
30 run GiddyUp::Application.adapter
Something went wrong with that request. Please try again.