<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Deploying Sinatra on Passenger</title>
	<atom:link href="http://blog.squarefour.net/2009/03/06/deploying-sinatra-on-passenger/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.squarefour.net/2009/03/06/deploying-sinatra-on-passenger/</link>
	<description></description>
	<pubDate>Thu, 29 Jul 2010 22:56:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: chip malice</title>
		<link>http://blog.squarefour.net/2009/03/06/deploying-sinatra-on-passenger/comment-page-1/#comment-6411</link>
		<dc:creator>chip malice</dc:creator>
		<pubDate>Wed, 26 May 2010 19:40:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.squarefour.net/?p=51#comment-6411</guid>
		<description>could you pls note the version of sinatra this works with? Kernel#run isn't defind for sinatra 1.0</description>
		<content:encoded><![CDATA[<p>could you pls note the version of sinatra this works with? Kernel#run isn&#8217;t defind for sinatra 1.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Registry Cleaner Reviews</title>
		<link>http://blog.squarefour.net/2009/03/06/deploying-sinatra-on-passenger/comment-page-1/#comment-6108</link>
		<dc:creator>Registry Cleaner Reviews</dc:creator>
		<pubDate>Mon, 03 May 2010 07:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.squarefour.net/?p=51#comment-6108</guid>
		<description>Nice post...Thank you for sharing some good things!!</description>
		<content:encoded><![CDATA[<p>Nice post&#8230;Thank you for sharing some good things!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://blog.squarefour.net/2009/03/06/deploying-sinatra-on-passenger/comment-page-1/#comment-4</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Thu, 19 Mar 2009 12:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.squarefour.net/?p=51#comment-4</guid>
		<description>Okay I worked it out, you need to add public and tmp folders and point the vhost at the public folder.

/root/config.ru
/root/public
/root/tmp

DocumentRoot /home/kris/sites/update.mydomain.co.uk/app/public</description>
		<content:encoded><![CDATA[<p>Okay I worked it out, you need to add public and tmp folders and point the vhost at the public folder.</p>
<p>/root/config.ru<br />
/root/public<br />
/root/tmp</p>
<p>DocumentRoot /home/kris/sites/update.mydomain.co.uk/app/public</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://blog.squarefour.net/2009/03/06/deploying-sinatra-on-passenger/comment-page-1/#comment-3</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Thu, 19 Mar 2009 12:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.squarefour.net/?p=51#comment-3</guid>
		<description>Any idea why my config.ru file is not being read by passenger, Apache is serving up the folder as static files.

[code]

  ServerName  update.mydomain.co.uk
  DocumentRoot /home/kris/sites/update.mydomain.co.uk/app

[/code]

I have passenger gem 2.0.3 and my config.ru looks like this:

[code]
require 'sinatra/lib/sinatra.rb'
require 'rubygems'

Sinatra::Application.default_options.merge!(
  :run =&gt; false,
  :env =&gt; :production,
  :raise_errors =&gt; true
)

log = File.new("sinatra.log", "a")
STDOUT.reopen(log)
STDERR.reopen(log)

require 'price_updater.rb'
run Sinatra.application
[/code]</description>
		<content:encoded><![CDATA[<p>Any idea why my config.ru file is not being read by passenger, Apache is serving up the folder as static files.</p>
<p>[code]</p>
<p>  ServerName  update.mydomain.co.uk<br />
  DocumentRoot /home/kris/sites/update.mydomain.co.uk/app</p>
<p>[/code]</p>
<p>I have passenger gem 2.0.3 and my config.ru looks like this:</p>
<p>[code]<br />
require &#8217;sinatra/lib/sinatra.rb&#8217;<br />
require &#8216;rubygems&#8217;</p>
<p>Sinatra::Application.default_options.merge!(<br />
  :run =&gt; false,<br />
  :env =&gt; :production,<br />
  :raise_errors =&gt; true<br />
)</p>
<p>log = File.new(&#8221;sinatra.log&#8221;, &#8220;a&#8221;)<br />
STDOUT.reopen(log)<br />
STDERR.reopen(log)</p>
<p>require &#8216;price_updater.rb&#8217;<br />
run Sinatra.application<br />
[/code]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
