From 0a231ea2ae92e5adbb7781624a4239d06ee445ab Mon Sep 17 00:00:00 2001 From: Beaudan Date: Mon, 5 Aug 2019 14:34:16 +1000 Subject: [PATCH] Allow start-prod and start-prod-multi so launch in production (mainnet) mode --- app/config.js | 4 +++- package.json | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/config.js b/app/config.js index 49423916e..3a865109d 100644 --- a/app/config.js +++ b/app/config.js @@ -20,10 +20,12 @@ if (environment === 'production') { process.env.NODE_CONFIG = ''; process.env.NODE_CONFIG_STRICT_MODE = true; process.env.HOSTNAME = ''; - process.env.NODE_APP_INSTANCE = ''; process.env.ALLOW_CONFIG_MUTATIONS = ''; process.env.SUPPRESS_NO_CONFIG_WARNING = ''; process.env.NODE_TLS_REJECT_UNAUTHORIZED = ''; + if (!process.env.LOKI_DEV) { + process.env.NODE_APP_INSTANCE = ''; + } } // We load config after we've made our modifications to NODE_ENV diff --git a/package.json b/package.json index ef7069683..332d053fe 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,8 @@ "postinstall": "electron-builder install-app-deps && rimraf node_modules/dtrace-provider", "start": "electron .", "start-multi": "NODE_APP_INSTANCE=1 electron .", + "start-prod": "LOKI_DEV=1 electron .", + "start-prod-multi": "LOKI_DEV=1 NODE_APP_INSTANCE=1 electron .", "grunt": "grunt", "icon-gen": "electron-icon-maker --input=images/icon_1024.png --output=./build", "generate": "yarn icon-gen && yarn grunt",