From 3558f9a0ec750db2b05f2c5d6a39d2805c6dba82 Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Thu, 10 May 2018 19:11:31 +0800 Subject: [PATCH] Update bs:init rake task with new database.yml location --- config/environments/development.rb | 2 ++ lib/tasks/bootstrap.rake | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 501ea94e4..9e51b24ea 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -55,4 +55,6 @@ Rails.application.configure do # Raises error for missing translations # config.action_view.raise_on_missing_translations = true + + config.log_level = :error end diff --git a/lib/tasks/bootstrap.rake b/lib/tasks/bootstrap.rake index 41e63d6c9..99771ad14 100644 --- a/lib/tasks/bootstrap.rake +++ b/lib/tasks/bootstrap.rake @@ -3,7 +3,7 @@ module BootstrapRakeHelper SERVER_LOG = Rails.root.join('log', "#{Rails.env}.log") AUTO_WIZARD = { source: Rails.root.join('contrib', 'auto_wizard_test.json'), dest: Rails.root.join('auto_wizard.json') }.freeze - DB_CONFIG = { source: Rails.root.join('contrib', 'database.yml'), + DB_CONFIG = { source: Rails.root.join('config', 'database', 'database.yml'), dest: Rails.root.join('config', 'database.yml') }.freeze def flush_cache_and_logs