Skip to content

Instantly share code, notes, and snippets.

@baldowl baldowl/app.rb
Created Apr 13, 2010

Embed
What would you like to do?
Heroku-Jekyll-Sinatra
before do
cache_control :public, :max_age => 31557600
end
get '/' do
send_file(File.join(settings.public, 'index.html'), :disposition => nil)
end
get '/*' do
send_file(File.join(settings.public, params[:splat]), :disposition => nil)
end
require 'rubygems'
gem 'sinatra', '= 1.0'
require 'sinatra'
require 'app'
set :public, Proc.new {File.join(root, '_site')}
disable :static
run Sinatra::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.