1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-18 20:59:39 +02:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 } %>