From 5e8cbeecbe20b2e6b6fbc73e88a1199c270615dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Thu, 28 Dec 2023 05:23:41 -0500 Subject: [PATCH] refactor(config): add port number --- lib/dbconfig.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dbconfig.ts b/lib/dbconfig.ts index 94d5922..e102394 100644 --- a/lib/dbconfig.ts +++ b/lib/dbconfig.ts @@ -1,7 +1,7 @@ import { resolve } from "path"; import * as dotenv from "dotenv"; const FUCKYOU = "/rockfic/abc-rockfic-v3"; -dotenv.config({ path: resolve("/home/rockfic/rockfic-staging/.env") }); +// dotenv.config({ path: resolve("/home/rockfic/rockfic-staging/.env") }); export const hasMigrated = false; export const uri = process.env.NODE_ENV == "development" @@ -10,4 +10,4 @@ export const uri = export const olduri = process.env.NODE_ENV == "development" ? `mongodb://127.0.0.1/rockfic_old?authSource=admin` - : `mongodb://${process.env.DBUSER}:${process.env.DBPASS}@127.0.0.1/rockfic_old?authSource=admin`; + : `mongodb://${process.env.DBUSER}:${process.env.DBPASS}@127.0.0.1:27017/rockfic_old?authSource=admin`;