Commit 8a56e7db authored by Cyril Rohr's avatar Cyril Rohr

Allow to parse heroku-generated database.yml config file.

parent 11d3a00c
...@@ -16,7 +16,7 @@ namespace :gitlab do ...@@ -16,7 +16,7 @@ namespace :gitlab do
Rake::Task["db:setup"].invoke 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"] success = case config["adapter"]
when /^mysql/ then when /^mysql/ then
Rake::Task["add_limits_mysql"].invoke Rake::Task["add_limits_mysql"].invoke
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment