title: How do I configure CakePHP to detect my development / production environments or do I just keep the config files out of version control?
body: <p>I am a RoR developer, but I am presently working with CakePHP for a project where I cannot tweak the server. In my Rails production server, Passenger is setup to automatically use the "Production" environment, overriding the local app setup. I would like to setup my cakephp app to do the same thing. How do you usually accomplish that with CakePHP? Do you set up a domain parser, or you just keep core.php and database.php out of version control? 
  Thanks in advance,
  Davide</p>