Skip to content

Instantly share code, notes, and snippets.

@olivierlacan
Created September 15, 2011 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olivierlacan/1218660 to your computer and use it in GitHub Desktop.
Save olivierlacan/1218660 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'middleman'
run Middleman.server
use Rack::Static,
:urls => ["/stylesheets", "/images"],
:root => "build"
run lambda { |env|
[
200,
{
'Content-Type' => 'text/html',
'Cache-Control' => 'public, max-age=86400'
},
File.open('build/index.html', File::RDONLY)
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment