This change adds a missing environment variable for the devOptions.skipUpdateCheck boolean parameter — DEV_OPTIONS_SKIP_UPDATE_CHECK. This option defaults to false, running the update check at boot.
Skipping the update check marginally reduces boot time and prevents a warning message when git is not installed (such as in a minimal container image).
Below is a brief demonstration of the change on a system that does have git installed:
DEV_OPTIONS_SKIP_UPDATE_CHECK not set
$ npm run server
> reactmap@1.33.0-develop.7 server
> node server/src/index.js
[ ... ]
ℹ 2024-06-15 21:14:32 [API] Loaded users.js
ℹ 2024-06-15 21:14:32 [UPDATE] There is a new version available: git pull to update
ℹ 2024-06-15 21:14:32 [UPDATE] Completed
ℹ 2024-06-15 21:14:33 [DB] Determining database types for 2 connections
[ ... ]
DEV_OPTIONS_SKIP_UPDATE_CHECK set to true
$ DEV_OPTIONS_SKIP_UPDATE_CHECK=true npm run server
> reactmap@1.33.0-develop.7 server
> node server/src/index.js
[...]
ℹ 2024-06-15 21:14:52 [API] Loaded users.js
ℹ 2024-06-15 21:14:54 [DB] Determining database types for 2 connections
[...]
DEV_OPTIONS_SKIP_UPDATE_CHECK set to false
$ DEV_OPTIONS_SKIP_UPDATE_CHECK=false npm run server
> reactmap@1.33.0-develop.7 server
> node server/src/index.js
[...]
ℹ 2024-06-15 21:15:32 [API] Loaded users.js
ℹ 2024-06-15 21:15:32 [UPDATE] There is a new version available: git pull to update
ℹ 2024-06-15 21:15:32 [UPDATE] Completed
ℹ 2024-06-15 21:15:33 [DB] Determining database types for 2 connections
[...]
devOptions.skipUpdateCheck is not present in the server config file.
This change adds a missing environment variable for the
devOptions.skipUpdateCheck
boolean parameter —DEV_OPTIONS_SKIP_UPDATE_CHECK
. This option defaults to false, running the update check at boot.Skipping the update check marginally reduces boot time and prevents a warning message when
git
is not installed (such as in a minimal container image).Below is a brief demonstration of the change on a system that does have git installed:
DEV_OPTIONS_SKIP_UPDATE_CHECK
not setDEV_OPTIONS_SKIP_UPDATE_CHECK
set to trueDEV_OPTIONS_SKIP_UPDATE_CHECK
set to falsedevOptions.skipUpdateCheck
is not present in the server config file.