<?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: Using Capistrano with Passenger (mod_rails)</title>
	<atom:link href="http://jimneath.org/2008/05/10/using-capistrano-with-passenger-mod_rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimneath.org/2008/05/10/using-capistrano-with-passenger-mod_rails/</link>
	<description>Ruby on Rails, Javascript, CSS and Standards</description>
	<pubDate>Fri, 05 Sep 2008 21:40:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Jerry Cheung</title>
		<link>http://jimneath.org/2008/05/10/using-capistrano-with-passenger-mod_rails/#comment-534</link>
		<dc:creator>Jerry Cheung</dc:creator>
		<pubDate>Thu, 14 Aug 2008 10:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=26#comment-534</guid>
		<description>I'm also really enjoying the ease of use of Passenger.  I wish I had come across your site earlier for the Capistrano advice.  I had a pretty nasty time figuring out to set default_run_options[:pty] to true.  Here's the story:

http://www.whatcodecraves.com/articles/2008/08/12/picking_at_capistrano

Another little useful tool for OS X is the Passenger prefpane.  It's not hard to do the Apache configs yourself, but I liked having this for development.</description>
		<content:encoded><![CDATA[<p>I&#8217;m also really enjoying the ease of use of Passenger.  I wish I had come across your site earlier for the Capistrano advice.  I had a pretty nasty time figuring out to set default_run_options[:pty] to true.  Here&#8217;s the story:</p>
<p><a href="http://www.whatcodecraves.com/articles/2008/08/12/picking_at_capistrano" rel="nofollow">http://www.whatcodecraves.com/articles/2008/08/12/picking_at_capistrano</a></p>
<p>Another little useful tool for OS X is the Passenger prefpane.  It&#8217;s not hard to do the Apache configs yourself, but I liked having this for development.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brendon</title>
		<link>http://jimneath.org/2008/05/10/using-capistrano-with-passenger-mod_rails/#comment-522</link>
		<dc:creator>Brendon</dc:creator>
		<pubDate>Tue, 29 Jul 2008 01:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=26#comment-522</guid>
		<description>Also found a more elegant way of doing this which also works for a cold start:

namespace :deploy do
  %w(start restart).each { &#124;name&#124; task name, :roles =&#62; :app do passenger.restart end }
end

See:

http://snippets.dzone.com/posts/show/5466</description>
		<content:encoded><![CDATA[<p>Also found a more elegant way of doing this which also works for a cold start:</p>
<p>namespace :deploy do<br />
  %w(start restart).each { |name| task name, :roles =&gt; :app do passenger.restart end }<br />
end</p>
<p>See:</p>
<p><a href="http://snippets.dzone.com/posts/show/5466" rel="nofollow">http://snippets.dzone.com/posts/show/5466</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brendon</title>
		<link>http://jimneath.org/2008/05/10/using-capistrano-with-passenger-mod_rails/#comment-521</link>
		<dc:creator>Brendon</dc:creator>
		<pubDate>Tue, 29 Jul 2008 01:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=26#comment-521</guid>
		<description>In response to redconfetti and also to the author:

It seems (perhaps if you have an older setup of rails that has been upgraded a few times) that you'll have a reaper and spawner and other scripts in the script/process/ directory. Capistrano will try to run reaper on a deploy if it exists. I suppose there are two ways around this, first just delete reaper (I didn't test this), or taking a leaf from the mongrel_cluster gem, override what deploy.restart does. To do this just replace the entire Passenger section in the above code with:


#############################################################
# Passenger
#############################################################

namespace :passenger do
  desc "Restart Application"
  task :restart, :roles =&#62; :app do
    run "touch #{current_path}/tmp/restart.txt"
  end
end

namespace :deploy do
  desc "Restart the Passenger system."
  task :restart, :roles =&#62; :app do
    passenger.restart
  end
end

-----------------------------------

This way you don't even have to call a passenger restart, it'll just happen as part of a normal deploy.</description>
		<content:encoded><![CDATA[<p>In response to redconfetti and also to the author:</p>
<p>It seems (perhaps if you have an older setup of rails that has been upgraded a few times) that you&#8217;ll have a reaper and spawner and other scripts in the script/process/ directory. Capistrano will try to run reaper on a deploy if it exists. I suppose there are two ways around this, first just delete reaper (I didn&#8217;t test this), or taking a leaf from the mongrel_cluster gem, override what deploy.restart does. To do this just replace the entire Passenger section in the above code with:</p>
<p>#############################################################<br />
# Passenger<br />
#############################################################</p>
<p>namespace :passenger do<br />
  desc &#8220;Restart Application&#8221;<br />
  task :restart, :roles =&gt; :app do<br />
    run &#8220;touch #{current_path}/tmp/restart.txt&#8221;<br />
  end<br />
end</p>
<p>namespace :deploy do<br />
  desc &#8220;Restart the Passenger system.&#8221;<br />
  task :restart, :roles =&gt; :app do<br />
    passenger.restart<br />
  end<br />
end</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>This way you don&#8217;t even have to call a passenger restart, it&#8217;ll just happen as part of a normal deploy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: redconfetti</title>
		<link>http://jimneath.org/2008/05/10/using-capistrano-with-passenger-mod_rails/#comment-309</link>
		<dc:creator>redconfetti</dc:creator>
		<pubDate>Wed, 11 Jun 2008 23:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=26#comment-309</guid>
		<description>I tried this and Capistrano attempted to use the user account is logged into SSH to connect to the subversion repository. I had to add this to deploy.rb:

set :scm_username, "username"
set :scm_password, "password"

Once this was done, it gave me an error about executing script/process/reaper, but I see that the release was still created on the server, and the 'current' symlink updated. Just thought I'd point this out for those who have a problem.</description>
		<content:encoded><![CDATA[<p>I tried this and Capistrano attempted to use the user account is logged into SSH to connect to the subversion repository. I had to add this to deploy.rb:</p>
<p>set :scm_username, &#8220;username&#8221;<br />
set :scm_password, &#8220;password&#8221;</p>
<p>Once this was done, it gave me an error about executing script/process/reaper, but I see that the release was still created on the server, and the &#8216;current&#8217; symlink updated. Just thought I&#8217;d point this out for those who have a problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Neath :: Using Capistrano with Passenger [ RubyCorner ]</title>
		<link>http://jimneath.org/2008/05/10/using-capistrano-with-passenger-mod_rails/#comment-291</link>
		<dc:creator>Jim Neath :: Using Capistrano with Passenger [ RubyCorner ]</dc:creator>
		<pubDate>Sat, 07 Jun 2008 12:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=26#comment-291</guid>
		<description>[...] 12th 2008 9:24am  [-] From: jimneath.org  [...]</description>
		<content:encoded><![CDATA[<p>[...] 12th 2008 9:24am  [-] From: jimneath.org  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 28 mod_rails / Passenger Resources To Help You Deploy Rails Applications Faster</title>
		<link>http://jimneath.org/2008/05/10/using-capistrano-with-passenger-mod_rails/#comment-233</link>
		<dc:creator>28 mod_rails / Passenger Resources To Help You Deploy Rails Applications Faster</dc:creator>
		<pubDate>Fri, 23 May 2008 20:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=26#comment-233</guid>
		<description>[...] - Tom Copeland presents a simple Capistrano recipe for restarting mod_rails applications.    Using Capistrano with Passenger - A slightly deeper guide to using Capistrano to deploy mod_rails applications.    Installing Typo [...]</description>
		<content:encoded><![CDATA[<p>[...] - Tom Copeland presents a simple Capistrano recipe for restarting mod_rails applications.    Using Capistrano with Passenger - A slightly deeper guide to using Capistrano to deploy mod_rails applications.    Installing Typo [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Copeland</title>
		<link>http://jimneath.org/2008/05/10/using-capistrano-with-passenger-mod_rails/#comment-161</link>
		<dc:creator>Tom Copeland</dc:creator>
		<pubDate>Wed, 14 May 2008 17:49:25 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=26#comment-161</guid>
		<description>Good one Jim, thanks!  The only thing I do differently is put that Capistrano restart task under the deploy namespace:
http://tomcopeland.blogs.com/juniordeveloper/2008/05/mod_rails-and-c.html</description>
		<content:encoded><![CDATA[<p>Good one Jim, thanks!  The only thing I do differently is put that Capistrano restart task under the deploy namespace:<br />
<a href="http://tomcopeland.blogs.com/juniordeveloper/2008/05/mod_rails-and-c.html" rel="nofollow">http://tomcopeland.blogs.com/juniordeveloper/2008/05/mod_rails-and-c.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: This Week in Ruby (May 12, 2008) &#124; Zen and the Art of Programming</title>
		<link>http://jimneath.org/2008/05/10/using-capistrano-with-passenger-mod_rails/#comment-147</link>
		<dc:creator>This Week in Ruby (May 12, 2008) &#124; Zen and the Art of Programming</dc:creator>
		<pubDate>Mon, 12 May 2008 19:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=26#comment-147</guid>
		<description>[...] Ron Valente has a guide on setting up a Rails server through Ubuntu 8.04 using Passenger. While Jim Neath, published Using Capistrano with Passenger (mod_rails). [...]</description>
		<content:encoded><![CDATA[<p>[...] Ron Valente has a guide on setting up a Rails server through Ubuntu 8.04 using Passenger. While Jim Neath, published Using Capistrano with Passenger (mod_rails). [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
