1
votes

Based on Environment specific data fixtures with Symfony+Doctrine I changed php app/console doc:fix:load -n for php app/console doc:fix:load -n --env=prod so it recognizes a environment even though it's called from the console and all of the sudden it doesnt recognize the database parameters anymore (root@localhost is not the user/pass configured in parameters.yml, the only place where those appear is parameters.yml.dist, which shouldnt be relevant). The code is production ready and it works in production, databases connections and all, it has been for months, but the fixture command doesn't.

Putty output

1

1 Answers

2
votes

parameters.yml.dist is used only when a composer update or install is done and generates the according parameters.yml file after relative questions been asked (using bundle incenteev composer parameter handler).

If default database values is used from the dist file only in prod environment, I would suggest two things after deleting parameters.yml file :

1. Redo a composer update and answering db related questions again to regenerate parameters file

2. Clear cache for dev/prod environment.

And try again.

I hope this helps, and if not, let me know any further changes.

Best Regards.