Creating a config folder and moving the ‘env’ files

This commit is contained in:
2026-03-21 02:23:36 +01:00
parent 571276253c
commit ace057d379
8 changed files with 48 additions and 102 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ var appEnv = process.env.APP_ENV;
if (appEnv == undefined) {
appEnv = 'development';
}
require('dotenv').config({ path: `.env.${appEnv}` });
require('dotenv').config({ path: `config/env/.env.${appEnv}` });
const { promisify } = require('util'),
chalk = require('chalk');
//bodyParser = require('body-parser')