[Rails] Mongrel: Config File Q

Zed Shaw
Tue, 02 May 2006 04:34:50 -0000

Hi,

Someone mentioned it, but the option you want is -C to give it a config
file.  The config file is currently not well documented (which I''m
fixing up
as we speak), but basically it takes each of the long command line switches
as hash items to a YAML file.

If you are serious about doing a configuration based deployment, you are
probably also serious about managing a cluster of mongrel servers.   If this
is the case, then check out the mongrel_cluster gem from Bradley Taylor and
railsmachine.net.  It basically handles the config files, starts, restarts,
etc. for a cluster of mongrel processes.

You can get this by doing gem install mongrel_cluster.  There was a post
recently about it, but I''m going to also have docs on it "real
soon now".

There is an additional option for the mongrel hackers out there -S which
lets you use a "mongrel script".  This is for advanced folks only
though.
It basically let''s you use the Configurator to add your own spiffy
handlers
and such.

Hope that helps.

Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/



On 5/1/06 12:42 PM, "s.ross" <cwdinfo@gmail.com> wrote:

>
> I''d like to be able to type mongrel_rails start and have mongrel
read a conf
> file like lighttpd does. I''m pretty sure this can be done but the
> documentation refers to a camping interface and I just don''t see
it.
>
> Can someone point me in the right direction?
>
> Thx
> --
> View this message in context:
> http://www.nabble.com/Mongrel%3A-Config-File-Q-t1535646.html#a4172243
> Sent from the RubyOnRails Users forum at Nabble.com.
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails