OK. Here&#39;s the deal: <br><br>merb -m /path/to/merb/app does <span style="font-weight: bold;">not</span> work like I expect. Meaning, it starts merb with the defaults and not with whatever is&nbsp; in MERB_ROOT/dist/conf/merb.yml ... I looked at the lib/merb/merb_server.rb code and the options hash is never loaded again (with the 
merb.yml) after the initial setup method. This setup method tries to load merb.yml based on the PWD which is not the merb_app root.<br><br>Check out the patch which adds a -z or --merb-config /path/to/merbapp/dist/conf/merb.yml
<br>[From the patch]:<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Added by: Rogelio J. Samour 2007-01-23<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # We need to reload the options that exist in the App&#39;s merb.yml<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # This is needed when one calls merb NOT from the merb_app ROOT
<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # like so: merb --merb-config /path/to/dist/conf/merb.yml -m /path/to/merb/app<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # or if we add :merb_root: /path/to/merb/app in the merb.yml we can now only call it <br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # like so: merb --merb-config /path/to/dist/conf/merb.yml
<br><br>This allows me to potentially have several merb apps running on a server... then I can create symlinks to /etc/merb/&lt;symlinks to merb.yml files&gt; and loop through those... starting and stopping those... <br><br>
I also attached an init.d script that does this for just one merb app for now... but can be easily hacked into multiple. :)<br><br>Let me know what you guys think. Good or bad. You won&#39;t hurt my feelings.<br><br>thanks &amp; laters,
<br><br>-rogelio-<br><br><br><br><br><div><span class="gmail_quote">On 1/19/07, <b class="gmail_sendername">Rogelio J. Samour</b> &lt;<a href="mailto:rogelio.samour@gmail.com">rogelio.samour@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ha! OK. I guess I could just write one init.d script that starts and<br>stops the _one_ merb app I have in that box. I was just thinking in
<br>future terms.<br><br>thanks though!<br><br>-rjs-<br><br>On Fri, 2007-01-19 at 11:47 -0800, Ezra Zygmuntowicz wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do you have more then one merb app? I usually don&#39;t like to put more<br>&gt; then one app per 
init.d script. But if you do need to put them all in<br>&gt; one init.d script. I think the best way woudl be top place a shell<br>&gt; script somewhere that can start all yoru merbs appropriately. ANd<br>&gt; then just have the 
init.d script call that shell script.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Or even better yet, use monit instead of init.d scripts ;)<br>&gt;<br>&gt; -Ezra<br>&gt;<br>&gt;<br>&gt; On Jan 19, 2007, at 11:42 AM, Rogelio J. Samour wrote:<br>
&gt;<br>&gt; &gt; Correct but if I wanted to do a /etc/merb/merb_app1.yml<br>&gt; &gt; and /etc/merb/merb_app2.yml each of which are symbolic links to each<br>&gt; &gt; app&#39;s /path/to/dist/conf/merb.yml<br>&gt; &gt;<br>
&gt; &gt; Then I could do a /etc/init.d/merb restart and restart all of merb<br>&gt; &gt; apps.<br>&gt; &gt;<br>&gt; &gt; I guess my question would be: is this a good idea and a possible one?<br>&gt; &gt;<br>&gt; &gt; -rjs-
<br>&gt; &gt;<br>&gt; &gt; On Fri, 2007-01-19 at 11:35 -0800, Ezra Zygmuntowicz wrote:<br>&gt; &gt;&gt; On Jan 19, 2007, at 8:04 AM, Rogelio J. Samour wrote:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;&gt; I&#39;m trying to emulate the mongrel_cluster_ctl but it takes a -c
<br>&gt; &gt;&gt;&gt; conf_file option... meaning I can run it from anywhere as long as I<br>&gt; &gt;&gt;&gt; tell it where the conf file is. Merb doesn&#39;t have that capability<br>&gt; &gt;&gt;&gt; does<br>&gt; &gt;&gt;&gt; it? (it has an additional/supplemental config like 
mup.conf etc)<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Do I have to be under the merb_app root /path/to/merb/app/ to be<br>&gt; &gt;&gt;&gt; able<br>&gt; &gt;&gt;&gt; to run merb?<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Let me know.
<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Thanks,<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; rogelio<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;No you don&#39;t have to be in the merb apps root. You can pass merb
<br>&gt; &gt;&gt; root as a command line flag:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; $ merb -m /path/to/merbapp<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Cheers-<br>&gt; &gt;&gt; -- Ezra Zygmuntowicz<br>&gt; &gt;&gt; -- Lead Rails Evangelist
<br>&gt; &gt;&gt; -- <a href="mailto:ez@engineyard.com">ez@engineyard.com</a><br>&gt; &gt;&gt; -- Engine Yard, Serious Rails Hosting<br>&gt; &gt;&gt; -- (866) 518-YARD (9273)<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;
<br>&gt;<br>&gt; -- Ezra Zygmuntowicz<br>&gt; -- Lead Rails Evangelist<br>&gt; -- <a href="mailto:ez@engineyard.com">ez@engineyard.com</a><br>&gt; -- Engine Yard, Serious Rails Hosting<br>&gt; -- (866) 518-YARD (9273)<br>
&gt;<br>&gt;<br><br></blockquote></div><br>