Using mongrel cluster

Me thinks the docs might need a bit of fleshing out :stuck_out_tongue_winking_eye:

http://mongrel.rubyforge.org/docs/mongrel_cluster.html

At the very least, what vars can go in its config.

Joe

Right now you find some references to docs about mongrel_cluster at
(scroll
down to boottom):

http://mongrel.rubyforge.org/docs/index.html

Joe wrote:

Me thinks the docs might need a bit of fleshing out :stuck_out_tongue_winking_eye:

same. ive been looking for info on how to serve public/ with mongrelā€¦
so far, ive tried various things, including -r public, -r
/absolute/path/to/pubic, about to try making up a mongrel.conf and
setting a DirHandler for ā€œ.ā€ (hopefully this doesnt interfere with the
existing controller stuff).

i thought maybe it was just choking on symlinks, since dirs in /var/www
are actually linked to /usr/local/src, or maybe a permissions thing, but
seeing as other daemons can read the public files even running as
ā€˜nobodyā€™ instead of root, thatā€™s proably not itā€¦

On Mon, 2006-05-22 at 22:36 +0200, Joe wrote:

Me thinks the docs might need a bit of fleshing out :stuck_out_tongue_winking_eye:

http://mongrel.rubyforge.org/docs/mongrel_cluster.html

At the very least, what vars can go in its config.

Yeah, Iā€™m writing those as fast as I can. All this week Iā€™m pretty much
unemploying myself so people can have a release, so stay tuned and
theyā€™ll come soon.

ā€“
Zed A. Shaw

http://mongrel.rubyforge.org/

Hi Joe:

On May 22, 2006, at 4:36 PM, Joe wrote:

Me thinks the docs might need a bit of fleshing out :stuck_out_tongue_winking_eye:

http://mongrel.rubyforge.org/docs/mongrel_cluster.html

At the very least, what vars can go in its config.

You donā€™t need to mess with editing the config file at all. Just use
the ā€œcluster::configureā€ command and it will write the file for you.
The command takes the same arguments as the ā€œstartā€ command and
respects its default values. You can see all the options by doing
ā€œmongrel_rails cluster::configure -hā€.

Example, 8 mongrels in production environment starting at port 8000
bound to localhost for use behind a balancer.

Configure:
mongrel_rails cluster::configure -p 8000 -e production -a 127.0.0.1 -N 8

Start:
mongrel_rails cluster::start

Stop:
mongrel_rails cluster::stop

If you donā€™t call these from RAILS_ROOT, then use ā€œā€“chdirā€ to set
RAILS_ROOT when configuring. You can also write the configuration
file to a specfic directory using ā€œā€“configā€. To start/stop use ā€œā€“
configā€ to tell the command where to read the configuration from.

Good luck,
Bradley Taylor


Rails Machine
Simplified Ruby on Rails application deployment
http://railsmachine.com

just use mongrel it as you would use webrick. it just works. no
configuration needed. If you have a special setup, take a look at the
help
options, if you move to production, just add mongrel-cluster, it also
just
works, and again the help options will inform you how, there is no
special
thing about symlinks and that stuff you mentioned ā€¦