Compare commits
2 Commits
737eef91a1
...
5e50acf9cf
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e50acf9cf | |||
| 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