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

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s