Update bs:init rake task with new database.yml location

This commit is contained in:
Ryan Lue 2018-05-10 19:11:31 +08:00
parent b359e2624c
commit 3558f9a0ec
2 changed files with 3 additions and 1 deletions

View file

@ -55,4 +55,6 @@ Rails.application.configure do
# Raises error for missing translations # Raises error for missing translations
# config.action_view.raise_on_missing_translations = true # config.action_view.raise_on_missing_translations = true
config.log_level = :error
end end

View file

@ -3,7 +3,7 @@ module BootstrapRakeHelper
SERVER_LOG = Rails.root.join('log', "#{Rails.env}.log") SERVER_LOG = Rails.root.join('log', "#{Rails.env}.log")
AUTO_WIZARD = { source: Rails.root.join('contrib', 'auto_wizard_test.json'), AUTO_WIZARD = { source: Rails.root.join('contrib', 'auto_wizard_test.json'),
dest: Rails.root.join('auto_wizard.json') }.freeze 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 dest: Rails.root.join('config', 'database.yml') }.freeze
def flush_cache_and_logs def flush_cache_and_logs