From f92fbe89319d466ea6f1029d8a41b76a495d0666 Mon Sep 17 00:00:00 2001 From: erick Date: Thu, 14 May 2020 18:45:37 -0300 Subject: [PATCH] Forgot to set the config to use sample file --- bin/setup | 8 ++++---- config/{sample.database.yml => database.yml.sample} | 0 2 files changed, 4 insertions(+), 4 deletions(-) rename config/{sample.database.yml => database.yml.sample} (100%) diff --git a/bin/setup b/bin/setup index 0e39e8c..5fae1df 100755 --- a/bin/setup +++ b/bin/setup @@ -17,10 +17,10 @@ FileUtils.chdir APP_ROOT do system! 'gem install bundler --conservative' system('bundle check') || system!('bundle install') - # puts "\n== Copying sample files ==" - # unless File.exist?('config/database.yml') - # FileUtils.cp 'config/database.yml.sample', 'config/database.yml' - # end + puts "\n== Copying sample files ==" + unless File.exist?('config/database.yml') + FileUtils.cp 'config/database.yml.sample', 'config/database.yml' + end puts "\n== Preparing database ==" system! 'bin/rails db:prepare' diff --git a/config/sample.database.yml b/config/database.yml.sample similarity index 100% rename from config/sample.database.yml rename to config/database.yml.sample