Running Symfony 2 Applications in OpenShift

2 thoughts on “Running Symfony 2 Applications in OpenShift”

  1. Instead of committing the parameters.yml file (credentials should never be put in a git repo, and it would also force you to use the same DB credentials locally to develop the app), it would be better to use the ParameterHandler to build the file when running composer (it is part of the symfony standard edition since 2.3).
    It will work well in case the database credentials environment variables are available when running composer, as the ParameterHandler supports reading them:

    I’m using a similar setup on Heroku, where I can have the env variables at deploy time.

Leave a Reply

Your email address will not be published. Required fields are marked *