chore: add ability to change DB_PORT from standard 5432 (#480)

This commit is contained in:
Mohamed Halat
2024-02-26 06:44:07 -05:00
committed by GitHub
parent 971347c761
commit fd8ce1b32a
2 changed files with 2 additions and 0 deletions

View File

@@ -26,5 +26,6 @@ TLS=true
# Database Configuration
DB_HOST=localhost
DB_PORT=5432
POSTGRES_PASSWORD=postgres
POSTGRES_USER=postgres

View File

@@ -19,6 +19,7 @@ default: &default
# https://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
host: <%= ENV.fetch("DB_HOST") { "127.0.0.1" } %>
port: <%= ENV.fetch("DB_PORT") { "5432" } %>
password: <%= ENV.fetch("POSTGRES_PASSWORD") { nil } %>
user: <%= ENV.fetch("POSTGRES_USER") { nil } %>