Re: Development/Production setup with databases

2008-05-04 Thread basstech
Thanks John, that's exactly what I was looking for. On May 2, 1:04 pm, John David Anderson [EMAIL PROTECTED] wrote: I run some detection logic in bootstrap to see what server I'm on, and set a constant that tells the system where I'm at. In database.php I have a few class variables to

Re: Development/Production setup with databases

2008-05-02 Thread John David Anderson
I run some detection logic in bootstrap to see what server I'm on, and set a constant that tells the system where I'm at. In database.php I have a few class variables to specify each of my db setups (staging, qa, production). Then in AppModel, I specify $useDbConfig using my constant so

Development/Production setup with databases

2008-05-02 Thread basstech
After reading through the configuration documentation, it is nice that CakePHP supports multiple database configurations. However, I am wondering if there is an easy way to simply turn on one configuration over another across the entire application. In the documentation it says: The $default

Re: Development/Production setup with databases

2008-05-02 Thread Adam Royle
I used to use this, which is a very cool way in my opinion. http://bakery.cakephp.org/articles/view/easy-peasy-database-config Now I deploy from Subversion and don't keep passwords in the respository (I have to manually add the database.php file with correct details whenever I deploy to a new