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

Reply via email to