-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor server Engine configuration setup (#7)
# 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`, and `skip`) allows users to tailor the configuration process to their specific requirements when `SERVER_SETTINGS_MODE` is set to `auto`. ## 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 the `Engine.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 of `SERVER_SETTINGS_MODE` being set to `auto`. The following table summarizes the key variables: | Variable | Description | Default value | Allowed value | | -------------------- | ----------------------------------- | ------------- | ----------------------- | | `ENGINE_CONFIG_MODE` | How `Engine.ini` file is configured | `modular` | `full`/`modular`/`skip` | ## Testing Instructions To test these changes: 1. Set `SERVER_SETTINGS_MODE` to `auto`. 2. Adjust `ENGINE_CONFIG_MODE` to `full`, `modular`, or `skip`. 3. Configure individual environment variables related to engine settings. 4. Run the server and verify that the `Engine.ini` file reflects the chosen configuration mode and settings. ## Checklist - [x] I have performed a self-review of my own code - [x] I have updated the documentation (if necessary) - [x] My changes do not introduce any breaking changes or bugs
- Loading branch information
Showing
9 changed files
with
248 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.