diff options
author | Cyril Rohr <cyril.rohr@gmail.com> | 2014-04-01 20:08:25 +0400 |
---|---|---|
committer | Cyril Rohr <cyril.rohr@gmail.com> | 2014-04-07 18:48:51 +0400 |
commit | 8a56e7db485d3109f3b2f02896c1165c33ffa8fb (patch) | |
tree | 90c9e34bc7e1c946257968a90cf67cf94c18ffd8 | |
parent | 11d3a00c28677e3b20582535247945f3d7670fad (diff) |
Allow to parse heroku-generated database.yml config file.
-rw-r--r-- | lib/tasks/gitlab/setup.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/setup.rake b/lib/tasks/gitlab/setup.rake index 853994dd67d..f988479f574 100644 --- a/lib/tasks/gitlab/setup.rake +++ b/lib/tasks/gitlab/setup.rake @@ -16,7 +16,7 @@ namespace :gitlab do Rake::Task["db:setup"].invoke - config = YAML.load_file(File.join(Rails.root,'config','database.yml'))[Rails.env] + config = YAML.load(ERB.new(File.read(File.join(Rails.root, "config","database.yml"))).result) success = case config["adapter"] when /^mysql/ then Rake::Task["add_limits_mysql"].invoke |