refactor(config): add port number
This commit is contained in:
parent
2689f1e55b
commit
5e8cbeecbe
@ -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`;
|
||||
|
Loading…
Reference in New Issue
Block a user