Static websites with Heroku
I recently moved off of Dreamhost in favor of Heroku. I have a few static sites I needed to move over and here's how I did it:
Basically, I'm using Rack with some extensions (rack-contrib and rack-rewrite) to serve up the /public directory. Nice and easy!
Posted on Monday, Jan 25, 2010
3 Comments
-----> Heroku receiving push
-----> Rack app detected
-----> Installing gem rack-contrib from http://rubygems.org
Successfully installed rack-contrib-1.0.1
1 gem installed
-----> Installing gem rack-rewrite from http://rubygems.org
Successfully installed rack-rewrite-1.0.0
1 gem installed
Compiled slug size is 1.1MB
-----> Launching...... done
http://<myapp>.heroku.com deployed to Heroku
but no joy:
config.ru:6: uninitialized constant Rack::ETag (NameError)
from /home/heroku_rack/heroku.ru:21
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:46:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:46:in `map'
from /home/heroku_rack/heroku.ru:16
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
from /home/heroku_rack/heroku.ru:9:in `new'
from /home/heroku_rack/heroku.ru:9
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
from /home/heroku_rack/heroku.ru:1:in `new'
from /home/heroku_rack/heroku.ru:1
Leave a Comment