Refactor server Engine configuration setup #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update Engine Configuration Setup
Summary
This pull request introduces new configuration modes for the
Engine.ini
file, providing more flexibility and control over how engine settings are configured.Motivation and Context
With the evolving needs of the project, it became essential to enhance the configuration options for the
Engine.ini
file. The addition of three modes (full
,modular
, andskip
) allows users to tailor the configuration process to their specific requirements whenSERVER_SETTINGS_MODE
is set toauto
.Description
The
ENGINE_CONFIG_MODE
environment variable now plays a crucial role in determining how the engine settings are configured:full
: Includes all settings in theEngine.ini.template
file, utilizing environment variables or default values.modular
: Configures settings in the engine file only when the corresponding environment variable is set and not empty.skip
: Always skips the configuration of settings in the engine file, regardless ofSERVER_SETTINGS_MODE
being set toauto
.The following table summarizes the key variables:
ENGINE_CONFIG_MODE
Engine.ini
file is configuredmodular
full
/modular
/skip
Testing Instructions
To test these changes:
SERVER_SETTINGS_MODE
toauto
.ENGINE_CONFIG_MODE
tofull
,modular
, orskip
.Engine.ini
file reflects the chosen configuration mode and settings.Checklist