<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;p&gt;Natham writes about this tip I found today. This one helps to speed up the deployment with Passenger a little bit. In your Capistrano, Vlad, etc, you probably have a step that runs:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
touch tmp/restart.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This is needed, so Passenger (mod_rails) is able to know when it should restart itself. Now, think about this:&lt;/p&gt;

&lt;b&gt;Commit &quot;tmp/restart.txt&quot; to your Git repository.&lt;/b&gt;

&lt;p&gt;This way you'll never have to touch tmp/restart.txt again. This will be deleted when Passenger notices it. And on the next deployment, it'll be rewritten again, with your deploy script (Capistrano/etc), that probably runs something like &quot;git reset; git pull&quot;, and Passenger will notices again, restart. And so forth.&lt;/p&gt;

&lt;p&gt;Clever, isn't? :)&lt;/p&gt;

&lt;p&gt;Source: &lt;a href=&quot;http://codedlite.com/blog/?p=57&quot;&gt;A tip for Passenger(mod_rails) users&lt;/a&gt; by Nathan.&lt;/p&gt;</body>
  <comments-count type="integer">15</comments-count>
  <created-at type="datetime">2009-02-02T10:32:49Z</created-at>
  <id type="integer">17</id>
  <permalink nil="true"></permalink>
  <slug></slug>
  <title>No need for touching restart.txt. A tip for Passenger users</title>
  <updated-at type="datetime">2009-02-02T10:33:13Z</updated-at>
  <user-id type="integer" nil="true"></user-id>
</post>
