fix: refine default configuration
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 7 Jun 2024 10:45:19 +0000 (12:45 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 7 Jun 2024 10:45:19 +0000 (12:45 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/utils/Configuration.ts

index 118ea64011aca7d5a9f435c922d2b01c8f9d12de..06f543a58f017bcb3dec3cf10a4683fad3f79180 100644 (file)
@@ -95,11 +95,16 @@ export class Configuration {
     } else {
       console.error(
         `${chalk.green(logPrefix())} ${chalk.red(
-          `Configuration file '${configurationFile}' not found, using default configuration`
+          "Configuration file './src/assets/config.json' not found, using default configuration"
         )}`
       )
       Configuration.configurationData = {
-        stationTemplateUrls: [],
+        stationTemplateUrls: [
+          {
+            file: 'siemens.station-template.json',
+            numberOfStations: 1
+          }
+        ],
         supervisionUrls: 'ws://localhost:8180/steve/websocket/CentralSystemService',
         supervisionUrlDistribution: SupervisionUrlDistribution.ROUND_ROBIN,
         uiServer: defaultUIServerConfiguration,