<div>Hi,</div><div><br></div><div>Can anyone shed any light on why &quot;<span class="Apple-style-span" style="font-weight: bold;">reaper</span>&quot; (whilst seemingly working re restarting my mongrel ruby process) does not pick up changes to my application? &nbsp;(e.g. changing a title in a view for example). &nbsp; It&#39;s like the &quot;<span class="Apple-style-span" style="font-weight: bold;">mongrel_rails start &nbsp;etc...</span>&quot; is just restarting the current process but ignoring the new details re where the new application directory is. &nbsp; That is with capistrano the new releases are put in different directories, and are referenced in the command line options to &quot;<span class="Apple-style-span" style="font-weight: bold;">mongrel_rails</span>&quot;, however it seems these are being picked up. &nbsp; &nbsp;I basically have to do a <span class="Apple-style-span" style="font-weight: bold;">&quot;reaper -a kill&quot;</span> and then a <span class="Apple-style-span" style="font-weight: bold;">&quot;nohup script/spin&quot;</span> to get it to recognize the new application directory. &nbsp;</div>
<div><br></div><div>Here&#39;s an example of the scenario when I run reaper, the ruby processes is restarted, but it doesn&#39;t pick up the new directory (i.e. application changes).</div><div><br></div><div><span class="Apple-style-span" style="text-decoration: underline;">-- CONSOLE OUTPUT ---</span></div>
<div><div>[root@home ~]# cd /u/apps/equity/current/</div><div>[root@home current]# <span class="Apple-style-span" style="font-weight: bold;">./script/process/reaper&nbsp;</span></div><div><span class="Apple-style-span" style="font-weight: bold;">Restarting 4453</span></div>
<div>[root@home current]#&nbsp;</div></div><div><br></div><div><div><span class="Apple-style-span" style="text-decoration: underline;">-- MONGREL LOG EXTRACT --</span></div><div>** USR2 signal received.</div><div>** Restarting with arguments: &nbsp;ruby /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/<span class="Apple-style-span" style="font-weight: bold;">mongrel_rails start -d -a 0.0.0.0 -p 3001 -P /u/apps/equity/releases/20090209050120/tmp/pids/dispatch.3001.pid -e production -c /u/apps/equity/releases/20090209050120 -l /u/apps/equity/releases/20090209050120/log/mongrel.log</span></div>
<div>** Daemonized, any open files are closed. &nbsp;Look at /u/apps/equity/releases/20090209050120/tmp/pids/dispatch.3001.pid and /u/apps/equity/releases/20090209050120/log/mongrel.log for info.</div><div>** Starting Mongrel listening at <a href="http://0.0.0.0:3001">0.0.0.0:3001</a></div>
<div>** Starting Rails with production environment...</div><div>** Rails loaded.</div><div>** Loading any Rails specific GemPlugins</div><div>** Signals ready. &nbsp;TERM =&gt; stop. &nbsp;USR2 =&gt; restart. &nbsp;INT =&gt; stop (no restart).</div>
<div>** Rails signals registered. &nbsp;HUP =&gt; reload (without restart). &nbsp;It might not work well.</div><div>** Mongrel 1.1.5 available at <a href="http://0.0.0.0:3001">0.0.0.0:3001</a></div><div>** Writing PID file to /u/apps/equity/releases/20090209050120/tmp/pids/dispatch.3001.pid</div>
<div><br></div></div><div><br></div><div>Thanks</div><div><br></div><div><br></div>-- <br>Greg <br><a href="http://blog.gregnet.org/">http://blog.gregnet.org/</a><br><br><br>