# Quick question about database.yml and Passenger on local machine

**URL:** <https://www.ruby-forum.com/t/quick-question-about-database-yml-and-passenger-on-local-machine/150927>\
**Category:** Radiant CMS\
**Created:** [October 14, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/quick-question-about-database-yml-and-passenger-on-local-machine/150927 "2008-10-14T23:34:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nateless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@nateless](https://www.ruby-forum.com/u/nateless)\
**Post date:** [October 14, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/quick-question-about-database-yml-and-passenger-on-local-machine/150927/1 "2008-10-14T23:34:37Z")

</div>

I have finally joined the cool kids and started using Passenger on my  
laptop  
for my development sites. But I have one tiny problem, Passenger wants  
to  
use my production db settings instead of my development settings. How  
can I  
pimp-slap Passenger to get it to use the dev settings?

Relavant info:  
Ubuntu 8.04  
Rails 2.1.1  
Radiant 0.6.9  
Passenger gem v. 2.0.3

Thanks,

Nate

---

<div class="post-metadata">

**Author:** ![nateless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@nateless](https://www.ruby-forum.com/u/nateless)\
**Post date:** [October 14, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/quick-question-about-database-yml-and-passenger-on-local-machine/150927/2 "2008-10-14T23:38:09Z")

</div>

Hi!

Why would you want to use Passenger in your development environment?  
Isn’t mongrel (or maybe even webrick) the most appropriate for that?  
Then you don’t need to have apache running either.

cheers, Simon

---

<div class="post-metadata">

**Author:** ![nateless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@nateless](https://www.ruby-forum.com/u/nateless)\
**Post date:** [October 14, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/quick-question-about-database-yml-and-passenger-on-local-machine/150927/3 "2008-10-14T23:41:40Z")

</div>

In your virtual host for the site try adding something like

RailsEnv development

---

<div class="post-metadata">

**Author:** ![nateless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@nateless](https://www.ruby-forum.com/u/nateless)\
**Post date:** [October 14, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/quick-question-about-database-yml-and-passenger-on-local-machine/150927/4 "2008-10-14T23:42:51Z")

</div>

On Tue, Oct 14, 2008 at 4:37 PM, Simon Rönnqvist [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi!
> 
> Why would you want to use Passenger in your development environment? Isn’t  
> mongrel (or maybe even webrick) the most appropriate for that? Then you  
> don’t need to have apache running either.

On the one hand I want to start playing with it before I start depending  
on  
it for my production sites, on the other, I can run multiple development  
sites at once. I normally work on 2 or 3 sites each day and I am always  
forgetting to stop mongrel then go to the new site then start it up  
again,  
rinse, repeat. I was talking with somebody at a REST training session  
and he  
swore by the Passenger setup, so I figured I’d give it a try.

~Nate

---

<div class="post-metadata">

**Author:** ![nateless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@nateless](https://www.ruby-forum.com/u/nateless)\
**Post date:** [October 14, 2008, 11:48pm UTC](https://www.ruby-forum.com/t/quick-question-about-database-yml-and-passenger-on-local-machine/150927/5 "2008-10-14T23:48:07Z")

</div>

Plus, if you get the passenger pane for OSX, it makes creating new  
sites really simple, just drag an app directory onto the panel. Does  
all the apache config for you.

---

<div class="post-metadata">

**Author:** ![nateless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@nateless](https://www.ruby-forum.com/u/nateless)\
**Post date:** [October 14, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/quick-question-about-database-yml-and-passenger-on-local-machine/150927/6 "2008-10-14T23:49:17Z")

</div>

On Oct 15, 2008, at 24:41 , Nate T. wrote:

> > 
> 
> swore by the Passenger setup, so I figured I’d give it a try.
> 
> ~Nate

You can have several instances of mongrel running in parallel, you  
just need to have them using different ports. Your other reasons for  
using it may be valid though, I don’t know.

cheers, Simon\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Radiant mailing list  
Post: removed\_email\_address@domain.invalid  
Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)
