Advertisement
Guest User

Untitled

a guest
Jan 31st, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. diff --git a/app/config/config.yml b/app/config/config.yml
  2. index 3075825..0685fda 100644
  3. --- a/app/config/config.yml
  4. +++ b/app/config/config.yml
  5. @@ -55,13 +55,6 @@ swiftmailer:
  6. # for jackalope-doctrine-dbal
  7. doctrine:
  8. dbal:
  9. - driver: '%database_driver%'
  10. - host: '%database_host%'
  11. - port: '%database_port%'
  12. - dbname: '%database_name%'
  13. - user: '%database_user%'
  14. - password: '%database_password%'
  15. - path: '%database_path%'
  16. charset: UTF8
  17.  
  18. # cmf configuration
  19. diff --git a/app/config/config_prod.yml b/app/config/config_prod.yml
  20. index aa51fbf..b704da2 100644
  21. --- a/app/config/config_prod.yml
  22. +++ b/app/config/config_prod.yml
  23. @@ -17,3 +17,7 @@ monolog:
  24. type: stream
  25. path: '%kernel.logs_dir%/%kernel.environment%.log'
  26. level: debug
  27. +
  28. +doctrine:
  29. + dbal:
  30. + url: '%database_url%'
  31. diff --git a/composer.json b/composer.json
  32. index 0d880da..07a3ba8 100644
  33. --- a/composer.json
  34. +++ b/composer.json
  35. @@ -91,7 +91,9 @@
  36. "incenteev-parameters": [
  37. {
  38. "file": "app/config/parameters.yml",
  39. - "env-map": {}
  40. + "env-map": {
  41. + "database_url": "DATABASE_URL"
  42. + }
  43. },
  44. {
  45. "file": "app/config/phpcr.yml",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement