MONGREL CLUSTER SETU
21/02/2008
MONGREL CLUSTER SETUP
With mongrel working and our webapp directory prepared we can proceed with the mongrel_cluster configuration step: $ sudo mongrel_rails cluster::configure -e production -p 8000 -N 3 -c /var/www/apps/testapp -a 127.0.0.1 --user mongrel --group mongrelThis will write a configuration file in config/mongrel_cluster.yml. We have setup to run our cluster in production mode as the user mongrel and will start 3 mongrel servers listening on ports 8000, 8001, and 8002. Now, lets do a quick test of what we have setup so far: $ sudo mongrel_rails cluster::start Checking our host on ports 8000, 8001, and 8002 we should now be able to see our test application.We can stop all of those mongrels with:sudo mongrel_railcluster::stop. fonte: http://mongrel.rubyforge.org/docs/mongrel_cluster.html







Comentários
Sem comentários para esta matéria.Comentar artigo
Campos em negrito são obrigatórios.
< Voltar