mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 06:21:23 +00:00
chore: add ability to change DB_PORT from standard 5432 (#480)
This commit is contained in:
@@ -26,5 +26,6 @@ TLS=true
|
||||
|
||||
# Database Configuration
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
POSTGRES_PASSWORD=postgres
|
||||
POSTGRES_USER=postgres
|
||||
@@ -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 } %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user