Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Commit

Permalink
Update for deployment to Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltrix committed Jun 2, 2012
1 parent 253c65b commit cf08af1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

6 changes: 5 additions & 1 deletion Gemfile
@@ -1,4 +1,8 @@
source :rubygems

gem 'jekyll', '0.11.2'
gem 'jekyll'
gem 'rack'
gem 'rack-contrib'
gem 'rdiscount'
gem 'RedCloth'
gem 'thin'
20 changes: 17 additions & 3 deletions Gemfile.lock
Expand Up @@ -6,25 +6,39 @@ GEM
posix-spawn (>= 0.3.6)
classifier (1.3.3)
fast-stemmer (>= 1.0.0)
daemons (1.1.8)
directory_watcher (1.4.1)
fast-stemmer (1.0.0)
eventmachine (0.12.10)
fast-stemmer (1.0.1)
jekyll (0.11.2)
albino (~> 1.3)
classifier (~> 1.3)
directory_watcher (~> 1.1)
kramdown (~> 0.13)
liquid (~> 2.3)
maruku (~> 0.5)
kramdown (0.13.5)
kramdown (0.13.6)
liquid (2.3.0)
maruku (0.6.0)
syntax (>= 1.0.0)
posix-spawn (0.3.6)
rack (1.4.1)
rack-contrib (1.1.0)
rack (>= 0.9.1)
rdiscount (1.6.8)
syntax (1.0.0)
thin (1.3.1)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)

PLATFORMS
ruby

DEPENDENCIES
RedCloth
jekyll (= 0.11.2)
jekyll
rack
rack-contrib
rdiscount
thin
8 changes: 8 additions & 0 deletions config.ru
@@ -0,0 +1,8 @@
require 'rack'
require 'rack/contrib/try_static'

use Rack::TryStatic, :root => '_site', :urls => %w[/], :try => %w[.html index.html]

run Proc.new { |env|
[ 404, { 'Content-Type' => 'text/html' }, File.open(File.expand_path('../_site/404.html', __FILE__)) ]
}

0 comments on commit cf08af1

Please sign in to comment.