use some kind of dynamic db switch to always have the right db setting for the corresponding environment like http://www.dereuromark.de/2012/02/25/dynamic-database-switching/ then your problem resolves itself
Am Sonntag, 15. Juli 2012 00:49:24 UTC+2 schrieb advantage+: > > I'm baking local, correct so i need to go into database.php and comment > out live config, so i can bake local settings because it wont find the > local using live server settings, then uncomment / re comment local > settings to upload then re-upload database. > > If im making changes to local db its not live, i can bake local and test > local without having to always edit the database file. > > Like i said no big deal just curious. (using Dreamweaver with Auto Upload > on Save) so its a pain in the ass dealing with local and live, i know turn > off that setting that's the only reason I asked > > :) > > On Sat, Jul 14, 2012 at 8:13 PM, euromark <[email protected]>wrote: > >> for me this doesnt make much sense >> the database is switched/selected based on the environment not what >> action/shell you invoke - normally anyway >> >> so for local development you have a local db at all times which will then >> also be used for baking >> or what exactly are you asking? I mean, why switching the local db to a >> "more local one" for baking? >> >> >> >> Am Samstag, 14. Juli 2012 19:35:27 UTC+2 schrieb advantage+: >> >>> Is there a way to tell local cake what database to use when baking? So >>> for example when baking use $local config >>> >>> >>> >>> public $default = array( >>> >>> ** 'datasource' => 'Database/Mysql', >>> >>> ** 'persistent' => false, >>> >>> ** 'host' => 'localhost', >>> >>> ** 'login' => top_secret', >>> >>> ** 'password' => 'hard_to_guess', >>> >>> ** 'database' => 'storage_locker', >>> >>> ); >>> >>> >>> >>> public $local = array( >>> >>> ** 'datasource' => 'Database/Mysql', >>> >>> ** 'persistent' => false, >>> >>> ** 'host' => 'localhost', >>> >>> ** 'login' => 'root', >>> >>> ** 'password' => '', >>> >>> ** 'database' => 'local_site', >>> >>> ); >>> >>> >>> >>> Not a super important question , just curious? >>> >> -- >> Our newest site for the community: CakePHP Video Tutorials >> http://tv.cakephp.org >> Check out the new CakePHP Questions site http://ask.cakephp.org and help >> others with their CakePHP related questions. >> >> >> To unsubscribe from this group, send email to >> [email protected] For more options, visit this group >> at http://groups.google.com/group/cake-php >> > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
