How do I make tools like ./symfony guard:promote use the right DB connection configuration? I have a "production" and "development" DBs. When I'm accessing through the web server, symfony choses the right DB to use ('dev' in my dev environment, and prod in my production environment). However, when I'm using the command line, it seems to be always using the 'dev' connection... Currently I have to edit the databases.yml file, copy the prod config over the dev config, and then issue the commands, but that kind of defeats the purpose of having two different configurations.
(this only happens with the commandline tools... from the web, it works perfectly). 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. Luis. -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en