Permalink
Browse files

Rack setup ready for Heroku

Option 'dynamic_templates' needs to be set to
true otherwise tilt 2.0 won't work.

camping/template.rb contains reference to
Tilt::CompileSite and with camping server you
can get away with it because it automatically
sets 'dynamic_templates' to true.
  • Loading branch information...
1 parent 0783408 commit 5b818fad936b2dcade473b6af176d6856b2f4421 @toraritte committed May 17, 2014
Showing with 4 additions and 1 deletion.
  1. +1 −1 config.ru
  2. +3 −0 simple.rb
View
@@ -1,2 +1,2 @@
-require 'simple'
+require './simple.rb'
run Simple
View
@@ -8,6 +8,9 @@
module Simple
set :views, File.dirname(__FILE__) + '/views'
+
+ # otherwise tilt 2.0 won't work with rackup
+ set :dynamic_templates, true
end
module Simple::Controllers

0 comments on commit 5b818fa

Please sign in to comment.