Uff, I got lost. I had mongrel_cluster 0.1working fine, even with capistrano (my own hack). Then came mongrel_cluster 0.1.1 and I tried to set it up, but somehow I messed up things and nothing worked anymore. So here what I did:
<br><br><br>on production machine: (debian linux, rails 1.1)<br>
-------------------------------------------------------------<br>
- installing mongrel_cluster 0.1.1<br><br><br>on development machine<span style="font-size: larger;"><b><span name="st"></span></b></span>: (windows XP, raills 1.1)<br>-----------------------------------------------------------------------
<br>- inststalling mongrel_cluster 0.1.1<br><br>- recreating config file: mongrel_rails cluster::configure
<br><br>- modifying configfile manually to make it look like this: (will be more the one server later)<br>--- <br>num-procs: 1024<br>docroot: public<br>timeout: 120<br>cwd: /home/me/sites/myapp/current<br>log_file: log/mongrel.log
<br>port: 3000<br>config_script: <br>debug: false<br>environment: production<br>servers: 1<br>pid_file: log/mongrel.pid<br>address: <a href="http://0.0.0.0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
0.0.0.0</a><br>mime_map: <br><br>- deploy.rb: commented out my old restart and spinner tasks and added: require 'mongrel_cluster/recipes'
<br><br>- deployment: rake deploy (fails because config file is at: /home/me/sites/myapp/current/config/mongrel_cluster.yml) <br>...<br>executing "mongrel_rails cluster::restart -C /home/me/sites/myapp/config/mongrel_cluster.yml"
<br>...<br><br><br>then I thought I could give "cap -a configure_mongrel_cluster" a try, hoping it would put things into the right order, but I got this:<br><br> ** [out :: xx.xx.xx.xx] !!! Path to log file not valid: log/mongrel.log
<br> ** [out :: xx.xx.xx.xx] cluster::configure reported an error. Use -h to get help.<br><br><br><br>So what is wrong with the way I approached capistrano mongrel_cluster ?<br><br>regards<br>Roberto<br><br><div><span class="gmail_quote">
On 5/1/06, <b class="gmail_sendername">bradley taylor</b> <<a href="mailto:bradley@railsmachine.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bradley@railsmachine.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hey y'all:<br><br>mongrel_cluster provides management tools for running Mongrel behind
<br>a reverse-proxy/load balancer. It is an extraction from Rails<br>Machine, a deployment service and Ruby library that simplifies Rails<br>application deployment. This release fixes bugs and adds a Capistrano<br>task library.
<br><br>Changes:<br>-changed pid file format to include port<br>-only write configuration options that are explicitly specified or<br>required.<br>-removed some validation rules and delegate to mongrel_rails.<br>-added Capistrano task library.
<br><br>Please rerun mongrel_rails cluster::configure to ensure smooth<br>operation.<br><br>***Capistrano Recipe***<br><br>Add to config/deploy.rb:<br>require 'mongrel_cluster/recipes'<br><br>Example usage:<br>cap -a configure_mongrel_cluster
<br><br>Variables<br>mongrel_servers: Number of Mongrel servers to start.<br>mongrel_port: Starting port to bind to.<br>mongrel_address: Address to bind to.<br>mongrel_environment: Rails environment to run as.<br>mongrel_config: Path to config file.
<br>use_sudo: Whether or not tasks that can use sudo, ought to use sudo.<br>Capistrano defaults to true.<br><br>Tasks (performed on :app role)<br>configure_mongrel_cluster: Configure the cluster with variables. Uses<br>sudo if use_sudo is true.
<br>start_mongrel_cluster: Start Mongrel processes on the app server.<br>Uses sudo if use_sudo is true.<br>stop_mongrel_cluster: Stop the Mongrel processes on the app server.<br>Uses sudo if use_sudo is true.<br>restart_mongrel_cluster: Restart the Mongrel processes on the app
<br>server. Uses sudo if use_sudo is true.<br>restart: Calls restart_mongrel_cluster to allow Mongrel to be used<br>with the standard Capistrano deploy task.<br>spinner: Calls start_mongrel_cluster to allow Mongrel to be used with
<br>the standard Capistrano cold_deploy task.<br><br>Good luck and let me know how it works for ya!<br><br>Thanks,<br>Bradley Taylor<br>------<br>Rails Machine<br>Simplified web application deployment<br><a href="http://railsmachine.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://railsmachine.com</a><br><br><br><br><br>_______________________________________________<br>Rails mailing list<br><a href="mailto:Rails@lists.rubyonrails.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Rails@lists.rubyonrails.org</a><br><a href="http://lists.rubyonrails.org/mailman/listinfo/rails" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.rubyonrails.org/mailman/listinfo/rails</a><br></blockquote></div><br><br clear="all"><br>-- <br>Roberto Saccon