You can see on the reference guide of symfony
http://www.symfony-project.org/reference/1_2/en/16-Tasks a lot of task where
you can specifie the environement.

for your second question you can see
http://www.symfony-project.org/reference/1_2/en/  for the file configation
where the environement of your application.

if on your database.yml you create test environement and change the database
name or other when you make propel:build-all-load --env=test you rebuild
juste test environement. or if you want ./symfony cc --env=prod  only prod
cache are erase.

dev:
  propel:
    param:
      classname:  DebugPDO
prod:
  propel:
    class:        sfPropelDatabase
    param:
      classname:  PropelPDO
      dsn:        mysql:dbname=##PROJECT_NAME_PROD##;host=10.10.10.10


test:
  propel:
    class:        sfPropelDatabase
    param:
      classname:  PropelPDO
      dsn:        mysql:dbname=##PROJECT_NAME_TEST##;host=localhost

all:
  propel:
    class:        sfPropelDatabase
    param:
      classname:  PropelPDO
      dsn:        mysql:dbname=##PROJECT_NAME##;host=localhost
      username:   root
      password:
      encoding:   utf8
      persistent: true


      pooling:    true




2009/8/2 jskidmore <[email protected]>

>
> Thanks Khalid! Can "--env" be set for any of the Propel CLI tasks? I
> see from The symfony Cookbook that it can be used for the data
> management tasks, but what about model generation etc.?
>
> On Aug 2, 7:28 am, khalid <[email protected]> wrote:
> > in the database .yml you can determine you environnement
> >
> > all:
> >
> > dev:
> >
> > test:
> >
> > ....
> >
> > each enviromment you can make propel:build-all --env=test or  --env=dev
> ....
> > default is all
> >
> > 2009/8/2 jskidmore <[email protected]>
> >
> >
> >
> > > How does Propel determine which database to use for *command-line
> > > tools* (ex. "propel:build-all")? I'm setting up two environments
> > > (production and staging), and the databases will be different for
> > > each.
> >
> > > Is it "propel.ini" or "databases.yml"? If the former, does symfony
> > > auto-generate that file?
> >
> > > I would greatly appreciate any help. Thank you!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to