Sinatra + Dreamhost

Posted by – October 26, 2010

I was banging my head against a wall yesterday trying to get a site up and running on Dreamhost. The site was created using Sinatra which was relatively painless and straightforward.

I followed a few tutorials, all to no avail:

So, what did I learn? Dreamhost doesn’t necessarily have the gems you need, or the dependencies for the gems you need. What I needed to do was to “vendor” a copy of Sinatra, but not the most recent version which has a dependency for a gem called “tilt”. So I took a stab in the dark, picked an older version (0.9.4) and after some de-hacking from previously failed attempts to get things working the site is up and live using Sinatra on Dreamhost.

My final configuration is very similar to the first to tutorial links above, the key part for me was vendoring the correct version of Sinatra.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>