fix: Specify external db with non-standard port (#2711)
POSTGRES_PORT was not taking effect if provided separately instead of using DATABASE_URL. This adds support for using databases running on non-standard ports. #1145 #1147 Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -3,6 +3,7 @@ default: &default
|
||||
encoding: unicode
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||
host: <%= ENV.fetch('POSTGRES_HOST', 'localhost') %>
|
||||
port: <%= ENV.fetch('POSTGRES_PORT', '5432') %>
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
|
||||
Reference in New Issue
Block a user