Skip to content

Commit

Permalink
test hook
Browse files Browse the repository at this point in the history
  • Loading branch information
roylez committed Feb 3, 2010
1 parent 1a247e8 commit 56eb8e9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tom.preston-werner.com
roylez.heroku.com
22 changes: 22 additions & 0 deletions blog.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env ruby
# coding: utf-8
#Author: Roy L Zuo (roylzuo at gmail dot com)
#Description:
require 'rubygems'
require 'sinatra'

set :public, File.dirname(__FILE__)

# This before filter ensures that your pages are only ever served
# once (per deploy) by Sinatra, and then by Varnish after that
before do
response.headers['Cache-Control'] = 'public, max-age=31557600' # 1 year
end

get '/' do
File.read('index.html')
end

get '/*' do
File.read(params['splat'].first)
end
4 changes: 4 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# vim: ft=ruby
require 'blog'

run Sinatra::Application

0 comments on commit 56eb8e9

Please sign in to comment.