{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony-demo/issues/42","labels_url":"https://api.github.com/repos/symfony/symfony-demo/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony-demo/issues/42/comments","events_url":"https://api.github.com/repos/symfony/symfony-demo/issues/42/events","html_url":"https://github.com/symfony/symfony-demo/issues/42","id":69606459,"number":42,"title":"symfony-demo/app/config/parameters.yml - should it be in the repository?","user":{"login":"allyburns","id":370573,"avatar_url":"https://avatars.githubusercontent.com/u/370573?v=3","gravatar_id":"","url":"https://api.github.com/users/allyburns","html_url":"https://github.com/allyburns","followers_url":"https://api.github.com/users/allyburns/followers","following_url":"https://api.github.com/users/allyburns/following{/other_user}","gists_url":"https://api.github.com/users/allyburns/gists{/gist_id}","starred_url":"https://api.github.com/users/allyburns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allyburns/subscriptions","organizations_url":"https://api.github.com/users/allyburns/orgs","repos_url":"https://api.github.com/users/allyburns/repos","events_url":"https://api.github.com/users/allyburns/events{/privacy}","received_events_url":"https://api.github.com/users/allyburns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-20T14:58:10Z","updated_at":"2015-04-21T07:10:37Z","closed_at":null,"body":"Is it not best practice to ensure parameters.yml is NEVER checked in?\r\n\r\nI understand why it is here - to make sure it can be run out of the box, \r\nSo many projects I see always mistakenly commit this file at first.\r\n\r\nhttp://symfony.com/blog/new-in-symfony-2-3-interactive-management-of-the-parameters-yml-file\r\n\r\n\"As those parameters can be different on your local machine, your testing environment, your production servers, and even between developers working on the same project, it is not recommended to store it in the project repository. Instead, the repository should contain a paramaters.yml.dist file with sensible defaults that can be used as a good starting point for everyone.\"\r\n\r\nWould it not be safer to just put the database settings straight into config.yml with a comment saying you are best copying parameters.yl.dist to parameters.yml and adding database settings there. Then have a commented out block in  config.yml \r\n\r\n    # help here explaining parameters.yml and parameters.yml.dist\r\n\r\n    #       driver:   \"%database_driver%\"\r\n    #       host:     \"%database_host%\"\r\n\r\nThis way it will run out the box, without a parameters.yml file.\r\n\r\n - { resource: parameters.yml } # this would need commented out too, with an explanation why.\r\n\r\nMaybe I'm taking this too far, what are others thoughts?"},"comment":{"url":"https://api.github.com/repos/symfony/symfony-demo/issues/comments/94661885","html_url":"https://github.com/symfony/symfony-demo/issues/42#issuecomment-94661885","issue_url":"https://api.github.com/repos/symfony/symfony-demo/issues/42","id":94661885,"user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T07:10:36Z","updated_at":"2015-04-21T07:10:36Z","body":"@allyburns thanks for initiating this discussion and for understanding the reasons why we do what we do.\r\n\r\nI think the best option would be the one proposed by @stof (create the `parameters.yml` dynamically after uncompressing the Symfony Demo contents). I'll prepare a PR soon.\r\n\r\nBy the way, keep in mind that most users will never see this repository. They execute `symfony demo` and they get the code, in which it's normal to have the `parameters.yml` file. They would only notice something strange if the see the `.gitignore` contents.\r\n\r\n"}}