forked from nm3clol/nm3clol-express-app
fix: problem with reading environment using dotenv.
This commit is contained in:
parent
9cb16680f9
commit
973201e787
|
@ -5,8 +5,9 @@ const dotenv = require('dotenv');
|
|||
const dotenvExpand = require('dotenv-expand');
|
||||
const process = require('process');
|
||||
|
||||
let env = dotenv.config();
|
||||
dotenvExpand.expand(env);
|
||||
const env = {};
|
||||
let dotEnvConfig = dotenv.config({ processEnv: env });
|
||||
dotEnvConfig = dotenvExpand.expand({ parsed: env, processEnv: env });
|
||||
|
||||
const getAppHttpHost = () => env.APP_HTTP_HOST||'nm3clol-express-app';
|
||||
const getAppHttpPort = () => process.env.PORT||env.APP_HTTP_PORT||3000;
|
||||
|
|
Loading…
Reference in New Issue
Block a user