fix development mode flag

parent ec97fbc5
...@@ -20,7 +20,7 @@ services: ...@@ -20,7 +20,7 @@ services:
ports: ports:
# pass the exposed port as a env var, eg: PORT=1000 should pass to docker 1000:1000 # pass the exposed port as a env var, eg: PORT=1000 should pass to docker 1000:1000
- 7500:7500 - 7500:7500
command: ENV_NODE=development npm run dev-webapp command: npm run dev-webapp
# passing throug env vars to container docker # passing throug env vars to container docker
environment: environment:
# all config vars are passing as a env vars # all config vars are passing as a env vars
......
...@@ -20,7 +20,7 @@ const NPM_TARGET = process.env.npm_lifecycle_event; //eslint-disable-line no-pro ...@@ -20,7 +20,7 @@ const NPM_TARGET = process.env.npm_lifecycle_event; //eslint-disable-line no-pro
const timestamp = new Date().getTime().toString(); const timestamp = new Date().getTime().toString();
const hash = timestamp.slice(-6, timestamp.length); const hash = timestamp.slice(-6, timestamp.length);
var DEV = process.env.ENV_NODE === 'development'; var DEV = process.env.NODE_ENV === 'development';
var FULLMAP = false; var FULLMAP = false;
if (NPM_TARGET === 'run' || NPM_TARGET === 'run-fullmap' || NPM_TARGET === 'deploy') { if (NPM_TARGET === 'run' || NPM_TARGET === 'run-fullmap' || NPM_TARGET === 'deploy') {
DEV = true; DEV = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment