The personal finance app for everyone
chore: add ability to change DB_PORT from standard 5432 (#480)
Mohamed Halatfd8ce1b32a22
diff --git a/.env.example b/.env.exampleindex e1a1548e..acf9f1cd 100644--- a/.env.example+++ b/.env.example@@ -26,5 +26,6 @@ TLS=true# Database ConfigurationDB_HOST=localhost+DB_PORT=5432POSTGRES_PASSWORD=postgresPOSTGRES_USER=postgres\ No newline at end of filediff --git a/config/database.yml b/config/database.ymlindex c718f1f7..ac8bfe3e 100644--- a/config/database.yml+++ b/config/database.yml@@ -19,6 +19,7 @@ default: &default# https://guides.rubyonrails.org/configuring.html#database-poolingpool: <%= 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 } %>