Permalink
Browse files

Convert to php static site for better heroku performance

  • Loading branch information...
1 parent 535723b commit 172abd06224b2154f4b4b156750fb9bb3fddd165 @jkeen committed Jul 22, 2012
View
Binary file not shown.
View
@@ -0,0 +1 @@
+php_flag engine off
File renamed without changes.
View
@@ -1,3 +0,0 @@
-gem 'rack'
-gem 'rack-contrib', :git => 'git://github.com/rack/rack-contrib.git'
-gem 'rack-rewrite', :git => 'git://github.com/jtrupiano/rack-rewrite.git'
View
@@ -1,24 +0,0 @@
-GIT
- remote: git://github.com/jtrupiano/rack-rewrite.git
- revision: 2c916d9880c7e8cdefb9a93262d65298de08d86f
- specs:
- rack-rewrite (1.0.3.a)
-
-GIT
- remote: git://github.com/rack/rack-contrib.git
- revision: 3f004dd2d8e3f62c0d0837f149f44caaffe16a6e
- specs:
- rack-contrib (1.1.0)
- rack (>= 0.9.1)
-
-GEM
- specs:
- rack (1.2.2)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- rack
- rack-contrib!
- rack-rewrite!
View
@@ -1 +0,0 @@
-Because a lot of people really don't know.
File renamed without changes
View
@@ -1,12 +0,0 @@
-# Static site using Rack (with expire headers and etag support)... great for hosting static sites on Heroku
-
-require "bundler/setup"
-require 'rack/contrib'
-require 'rack-rewrite'
-
-use Rack::StaticCache, :urls => ['/images','/css','/favicon.ico', '/js', '/apple-touch-icon.png', 'robots.txt'], :root => "public"
-use Rack::ETag
-use Rack::Rewrite do
- rewrite '/', '/index.html'
-end
-run Rack::Directory.new('public')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
View
No changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.

0 comments on commit 172abd0

Please sign in to comment.