From 5826ba9da3ce4dfebec78f05e4aa5ab53f0db83b Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 19 Sep 2023 10:44:38 +0300 Subject: [PATCH] Change ev name --- .env.example | 2 ++ config/database.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 1b13a83..5c5bc0c 100644 --- a/.env.example +++ b/.env.example @@ -5,3 +5,5 @@ POSTGRES_USERNAME=postgres POSTGRES_PASSWORD=postgres DB_USERNAME=postgres DB_PASSWORD=postgres +POSTGRES_USER=postgres +POSTGRES_PASSWORD=postgres diff --git a/config/database.yml b/config/database.yml index 26061b9..e9b0e88 100644 --- a/config/database.yml +++ b/config/database.yml @@ -4,8 +4,8 @@ default: &default pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> host: <%= ENV["POSTGRES_HOST"] %> port: <%= ENV["POSTGRES_PORT"] %> - username: <%= ENV['DB_USERNAME'] %> - password: <%= ENV['DB_PASSWORD'] %> + username: <%= ENV['POSTGRES_USER'] %> + password: <%= ENV['POSTGRES_PASSWORD'] %> development: <<: *default