On Mon, 7 Jun 2010, Luis Alberto Zarrabeitia wrote:

> How do I make tools like ./symfony guard:promote use the right DB
> connection configuration?

Im not familiar with that CLI task, but does it take any additional 
parameters allowing you to specify the connection? Maybe try the help 
command?

> Another somewhat related question. I also need to configure some
> parameters differently, depending on whether I'm on the production
> server or on the dev environment (some file paths, legacy php
> libraries, mailer configuration, etc). Which would be the best place
> to do it? (I assume that it would be a .yml file... which one, and how
> do I access it?). the goal is to minimize the ammount of changes that
> I must manually do after a project:deploy.

Several ways to approach this:

Set them programmatically in your project configuration (you can check if 
you are in dev or prod mode and change values as appropriate).

You can also set them in app.yml.

Or you can have two sets of configs (dev and prod) and copy the prod one 
over when deploying.

See symfony reference book:
http://www.symfony-project.org/reference/1_4/en/



-- 


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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