Commit c4ef7f06 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #6717 from pkgr/fix-database-parsing-gitlab-setup

Allow to parse heroku-generated database.yml config file.
parents d238a21b 8a56e7db
......@@ -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
......
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