Warning Fix: Rename Unused application.yml File to Prevent Warnings (#9860)

This commit is contained in:
Molly Struve 2020-08-18 16:49:34 -05:00 committed by GitHub
parent d3c65fc99d
commit a5553cf296
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View file

@ -36,6 +36,7 @@ latest.dump
# Ignore application configuration
/config/application.yml
/config/application_unused.yml
/public/packs
/public/packs-test
/node_modules

View file

@ -28,6 +28,9 @@ chdir APP_ROOT do
# TEMPORARY @sre will remove before Sept 1, 2020
puts "\n== Create .env File from application.yml =="
system!("bin/rails create_dot_env_file")
if File.exist?("config/application.yml")
system!("mv config/application.yml config/application_unused.yml")
end
puts "\n== Copying sample files =="
unless File.exist?("config/database.yml")