fix(db): update env paths
This commit is contained in:
parent
87ee2cdd1d
commit
21040955bf
@ -1,11 +1,11 @@
|
||||
import { resolve } from "path";
|
||||
import * as dotenv from "dotenv";
|
||||
const FUCKYOU = "/rockfic/abc-rockfic-v3";
|
||||
dotenv.config({ path: resolve(FUCKYOU, ".env") });
|
||||
dotenv.config({ path: resolve("/home/rockfic-staging/.env") });
|
||||
export const hasMigrated = false;
|
||||
export const uri =
|
||||
process.env.NODE_ENV == "development"
|
||||
? `mongodb://127.0.0.1/test?authSource=admin`
|
||||
? `mongodb://127.0.0.1/${process.env.DBNAME}?authSource=admin`
|
||||
: `mongodb://${process.env.DBUSER}:${process.env.DBPASS}@${process.env.DB}?authSource=admin`;
|
||||
export const olduri =
|
||||
process.env.NODE_ENV == "development"
|
||||
|
Loading…
Reference in New Issue
Block a user