Skip to content

Commit

Permalink
Actually pass port to Sequelize 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Jan 27, 2025
1 parent 992af64 commit c82d293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions API/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const sequelizeSTAC =
process.env.WITH_STAC === "true"
? new Sequelize("mmgis-stac", process.env.DB_USER, process.env.DB_PASS, {
host: process.env.DB_HOST,
port: process.env.DB_PORT || "5432",
dialect: "postgres",
logging: process.env.VERBOSE_LOGGING == "true" || false,
pool: {
Expand Down
2 changes: 2 additions & 0 deletions scripts/init-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ async function initializeDatabase() {
process.env.DB_PASS,
{
host: process.env.DB_HOST,
port: process.env.DB_PORT || "5432",
dialect: "postgres",
logging: process.env.VERBOSE_LOGGING == "true" || false,
pool: {
Expand Down Expand Up @@ -112,6 +113,7 @@ async function initializeDatabase() {
process.env.DB_PASS,
{
host: process.env.DB_HOST,
port: process.env.DB_PORT || "5432",
dialect: "postgres",
logging: process.env.VERBOSE_LOGGING == "true" || false,
pool: {
Expand Down

0 comments on commit c82d293

Please sign in to comment.