Commit 8a56e7db485d3109f3b2f02896c1165c33ffa8fb
1 parent
11d3a00c
Exists in
spb-stable
and in
3 other branches
Allow to parse heroku-generated database.yml config file.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/tasks/gitlab/setup.rake
... | ... | @@ -16,7 +16,7 @@ namespace :gitlab do |
16 | 16 | |
17 | 17 | Rake::Task["db:setup"].invoke |
18 | 18 | |
19 | - config = YAML.load_file(File.join(Rails.root,'config','database.yml'))[Rails.env] | |
19 | + config = YAML.load(ERB.new(File.read(File.join(Rails.root, "config","database.yml"))).result) | |
20 | 20 | success = case config["adapter"] |
21 | 21 | when /^mysql/ then |
22 | 22 | Rake::Task["add_limits_mysql"].invoke | ... | ... |