<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Deploying Sinatra on DreamHost - Internal Server Error with views (RESOLVED!)</title>
	<atom:link href="http://ruby.tie-rack.org/68/deploying-sinatra-on-dreamhost-internal-server-error-with-views/feed/" rel="self" type="application/rss+xml" />
	<link>http://ruby.tie-rack.org/68/deploying-sinatra-on-dreamhost-internal-server-error-with-views/</link>
	<description>Ruby.send(:stop, 'messing around')</description>
	<pubDate>Fri, 12 Mar 2010 05:13:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Sean</title>
		<link>http://ruby.tie-rack.org/68/deploying-sinatra-on-dreamhost-internal-server-error-with-views/#comment-829</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Wed, 10 Mar 2010 05:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://ruby.tie-rack.org/68/deploying-sinatra-on-dreamhost-internal-server-error-with-views/#comment-829</guid>
		<description>@Aaron -- I just had the same issue with my first attempt to deploy a test Sinatra app on Dreamhost; even my test app was having problems with haml. I was able to fix it by vendoring haml (run 'gem unpack haml'; upload the results to your webroot/vendor/, and use 'require "vendor/haml-x.x.x/lib/haml.rb"' instead of just 'require "haml"').</description>
		<content:encoded><![CDATA[<p>@Aaron &#8212; I just had the same issue with my first attempt to deploy a test Sinatra app on Dreamhost; even my test app was having problems with haml. I was able to fix it by vendoring haml (run &#8216;gem unpack haml&#8217;; upload the results to your webroot/vendor/, and use &#8216;require &#8220;vendor/haml-x.x.x/lib/haml.rb&#8221;&#8216; instead of just &#8216;require &#8220;haml&#8221;&#8216;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://ruby.tie-rack.org/68/deploying-sinatra-on-dreamhost-internal-server-error-with-views/#comment-828</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Mon, 01 Mar 2010 12:24:52 +0000</pubDate>
		<guid isPermaLink="false">http://ruby.tie-rack.org/68/deploying-sinatra-on-dreamhost-internal-server-error-with-views/#comment-828</guid>
		<description>Thanks!
My issue was with haml.  For some reason erb works as expected but haml fails.
I was having problems still even with the change in the config.ru :view variable.
I am really still not so sure on my app path situation, this is my first ruby app.
but anyway, your first solution worked for me.</description>
		<content:encoded><![CDATA[<p>Thanks!<br />
My issue was with haml.  For some reason erb works as expected but haml fails.<br />
I was having problems still even with the change in the config.ru :view variable.<br />
I am really still not so sure on my app path situation, this is my first ruby app.<br />
but anyway, your first solution worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerod</title>
		<link>http://ruby.tie-rack.org/68/deploying-sinatra-on-dreamhost-internal-server-error-with-views/#comment-528</link>
		<dc:creator>Jerod</dc:creator>
		<pubDate>Wed, 23 Jul 2008 13:31:36 +0000</pubDate>
		<guid isPermaLink="false">http://ruby.tie-rack.org/68/deploying-sinatra-on-dreamhost-internal-server-error-with-views/#comment-528</guid>
		<description>Thanks for this. I had the same problem when deploying my Sinatra app. Works like a charm!

I wrote a quick and dirty IP to location mapper using the Google Maps API. 

http://ip2loc.jerodsanto.net</description>
		<content:encoded><![CDATA[<p>Thanks for this. I had the same problem when deploying my Sinatra app. Works like a charm!</p>
<p>I wrote a quick and dirty IP to location mapper using the Google Maps API. </p>
<p><a href="http://ip2loc.jerodsanto.net" rel="nofollow">http://ip2loc.jerodsanto.net</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Schneider</title>
		<link>http://ruby.tie-rack.org/68/deploying-sinatra-on-dreamhost-internal-server-error-with-views/#comment-527</link>
		<dc:creator>Chris Schneider</dc:creator>
		<pubDate>Mon, 07 Jul 2008 15:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://ruby.tie-rack.org/68/deploying-sinatra-on-dreamhost-internal-server-error-with-views/#comment-527</guid>
		<description>Awesome getting it to work!  I wonder why Passenger is handing back such a weird path.

To make it more flexible, instead of hard coding '/path/to/app/views', you could do a:

set :views, File.join(File.dirname(__FILE__), 'views')

That way you can move/redeploy your app with no problems, as all the references are local.</description>
		<content:encoded><![CDATA[<p>Awesome getting it to work!  I wonder why Passenger is handing back such a weird path.</p>
<p>To make it more flexible, instead of hard coding &#8216;/path/to/app/views&#8217;, you could do a:</p>
<p>set :views, File.join(File.dirname(__FILE__), &#8216;views&#8217;)</p>
<p>That way you can move/redeploy your app with no problems, as all the references are local.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
