I'm looking in to using Capistrano (or Fredistrano, built with CakePHP - http://code.google.com/p/fredistrano/) to automate this task, if possible. I don't know much about these tools, but I *think* they're capable of automating these tasks without creating code that gets sent to the server (though you'd have to write scripts for (Cap|Fred) istrano.
On Feb 11, 2:22 pm, gerhardsletten <[email protected]> wrote: > Read this today: > > switch($_SERVER['SERVER_NAME']){ > case ‘digbiz.localhost’: > $this->default = $this->dev; > break; > case ‘digbiz.example.com’: > $this->default = $this->prod; > break; > default: > // we are likely baking, use our local db > $this->default = $this->dev; > > } > > viahttp://edwardawebb.com/programming/php-programming/cakephp/automatica... > > My own solution, since I am using code.google.com for some of my > projects: > > database.php: > > <?php > include dirname(__FILE__) . '/../../database_site.php'; > ?> > > Moving my database settings out of the app directory --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
