Re: Testing Mongrel Configuration

Zed A. Shaw
Sat, 14 Oct 2006 03:51:42 -0000

On Fri, 13 Oct 2006 08:03:41 -0700 (PDT)
Will Gant <williamwgant-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:

> Hello all,
> Here are the contents of my /etc/mongrel/sites-enabled/test.config file:
> #RAILS_ROOT of your application
> dir=/home/wgant/Desktop/test
> #port the first mongrel instance should listen to, additional instances
listen to ports above
> port=8100
> #number of instances
> servers=3
> #port pen will listen on
> proxy_port=8001
>

Don''t write your own config file by hand, use the -G option to Mongrel
so that it gets generated correctly.  You can then modify it from there.  You do
it like this:

mongrel_rails start -G test.config -e production ...

(where ... is any other options you need)

It''ll then tell you it created test.config and you just need to run it
with:

mongrel_rails start -C test.config

And that''s it.

--
Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.