# Changes to mongrel\_cluster.yml isn't taking

**URL:** <https://www.ruby-forum.com/t/changes-to-mongrel-cluster-yml-isnt-taking/125768>\
**Category:** Deployment\
**Created:** [January 11, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/changes-to-mongrel-cluster-yml-isnt-taking/125768 "2008-01-11T21:37:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mememe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/977dab/32.png) [@mememe](https://www.ruby-forum.com/u/mememe)\
**Post date:** [January 11, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/changes-to-mongrel-cluster-yml-isnt-taking/125768/1 "2008-01-11T21:37:43Z")

</div>

So, I’ve been able to deploy a single app just fine. But in my  
attempts to run multiple rails apps within the same domain, I made a  
change by adding  
prefix: /app1  
to my mongrel\_cluster.yml file.

Using Capistrano, I ran cap:restart to restart my mongrel processes,  
but I saw no reference to prefix in the mongrel start command in  
mongrel.log:  
\*\* USR2 signal received.  
\*\* Restarting with arguments: ruby /usr/lib/ruby/gems/1.8/gems/  
mongrel-1.1.1/bin/mongrel\_rails start -d -a 0.0.0.0 -p 8000 -P /srv/  
www/htdocs/app1/releases/20080111175042/tmp/pids/dispatch.8000.pid -e  
production -c /srv/www/htdocs/app1/releases/20080111175042 -l /srv/www/  
htdocs/app1/releases/20080111175042/log/mongrel.log

It seems any change to my mongrel\_cluster.yml is not being picked up.  
To further test this, I altered the yml file to send its log file to  
mongrel\_test.log instead of mongrel.log. And still, it’s using  
mongrel.log.

What could I be doing wrong?

Thanks,

-A.

---

<div class="post-metadata">

**Author:** ![mememe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/977dab/32.png) [@mememe](https://www.ruby-forum.com/u/mememe)\
**Post date:** [January 11, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/changes-to-mongrel-cluster-yml-isnt-taking/125768/2 "2008-01-11T22:55:55Z")

</div>

On Jan 11, 2008, at 12:36 PM, me wrote:

> It seems any change to my mongrel\_cluster.yml is not being picked up.  
> To further test this, I altered the yml file to send its log file to  
> mongrel\_test.log instead of mongrel.log. And still, it’s using

1. What version of mongrel\_cluster are you running?
2. You’ve checked in your mongrel\_cluster.yml file, and
3. It’s on your app servers?

Cheers,  
-j

---

<div class="post-metadata">

**Author:** ![mememe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/977dab/32.png) [@mememe](https://www.ruby-forum.com/u/mememe)\
**Post date:** [January 11, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/changes-to-mongrel-cluster-yml-isnt-taking/125768/3 "2008-01-11T23:19:56Z")

</div>

> 1. What version of mongrel\_cluster are you running?

1.1.1

> 1. You’ve checked in your mongrel\_cluster.yml file, and

yes.

> 1. It’s on your app servers?

yes. Local and remote (where it’s deployed).

---

<div class="post-metadata">

**Author:** ![mememe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/977dab/32.png) [@mememe](https://www.ruby-forum.com/u/mememe)\
**Post date:** [January 12, 2008, 5:39am UTC](https://www.ruby-forum.com/t/changes-to-mongrel-cluster-yml-isnt-taking/125768/4 "2008-01-12T05:39:35Z")

</div>

On Jan 11, 2008, at 2:19 PM, me wrote:

> > 1. It’s on your app servers?
> 
> yes. Local and remote (where it’s deployed).

What’s the value of :mongrel\_conf in your config/deploy.rb and config/  
deploy/production.rb files?

-j

---

<div class="post-metadata">

**Author:** ![mememe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/977dab/32.png) [@mememe](https://www.ruby-forum.com/u/mememe)\
**Post date:** [January 12, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/changes-to-mongrel-cluster-yml-isnt-taking/125768/5 "2008-01-12T22:15:04Z")

</div>

I don’t have anything associated with :mongrel\_conf.  
Is there a default value?

---

<div class="post-metadata">

**Author:** ![mememe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/977dab/32.png) [@mememe](https://www.ruby-forum.com/u/mememe)\
**Post date:** [January 25, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/changes-to-mongrel-cluster-yml-isnt-taking/125768/6 "2008-01-25T16:44:24Z")

</div>

Just for the record, looks like what happened is that in spite of my  
assigning :mongrel\_conf, nothing I did to my mongrel\_cluster.yml would  
change its settings.

Reason was because of what I had in my script/spin file:

/path/current/script/process/spawner -p 8000 -i 2

From what I understand, it should have instead used something like  
this:

/usr/bin/mongrel\_rails cluster::start -C /path/current/config/  
mongrel\_cluster.yml
