Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update for deployment to Heroku

  • Loading branch information...
commit cf08af1fdd9e8c7da1635f458448ce53633016a3 1 parent 253c65b
@pixeltrix pixeltrix authored
Showing with 30 additions and 5 deletions.
  1. +0 −1  CNAME
  2. +5 −1 Gemfile
  3. +17 −3 Gemfile.lock
  4. +8 −0 config.ru
View
1  CNAME
@@ -1 +0,0 @@
-rubyonrails.org
View
6 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'
View
20 Gemfile.lock
@@ -6,8 +6,10 @@ 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)
@@ -15,16 +17,28 @@ GEM
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
View
8 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__)) ]
+}
Please sign in to comment.
Something went wrong with that request. Please try again.