Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI updates: webpack console output to explain how to point to a manager_config.json

Rich Turnerb670f04803d0
diff --git a/ui/app/manager/webpack.config.js b/ui/app/manager/webpack.config.js
index 698101bf6..46db4f72e 100644
--- a/ui/app/manager/webpack.config.js
+++ b/ui/app/manager/webpack.config.js
@@ -10,6 +10,15 @@ module.exports = (env, argv) => {
const IS_DEV_SERVER = !!process.argv.find(arg => arg.includes("serve"));
const config = util.getAppConfig(argv.mode, IS_DEV_SERVER, __dirname, managerUrl, keycloakUrl);
+ if (IS_DEV_SERVER) {
+ console.log("")
+ console.log("To set a path to a custom manager_config.json use the config environment argument with a path")
+ console.log("relative to this app e.g: ")
+ console.log("")
+ console.log("npm run serve -- --env config=../../../manager_config.json")
+ console.log("")
+ }
+
if (IS_DEV_SERVER && customConfigDir) {
console.log("CUSTOM_CONFIG_DIR: " + customConfigDir);