Skip to content

Instantly share code, notes, and snippets.

@andrewhavens
Created November 7, 2012 07:18
Show Gist options
  • Save andrewhavens/4029987 to your computer and use it in GitHub Desktop.
Save andrewhavens/4029987 to your computer and use it in GitHub Desktop.
Ruby static site with Rack
use Rack::Static, :root => "public"
run lambda { |env|
[200, {'Content-Type' => 'text/html'},
File.open('public/index.html', File::RDONLY)
]
}
@andrewhavens
Copy link
Author

How can we make this even smaller?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment