PDA

Просмотр полной версии : Config: Implement config override with env vars (#502)


newsbot
08.03.2024, 20:41
Автор: walkline


<pre style='white-space:pre-wrap;width:81ex'>Config: Implement config override with env vars (#502)

* Config: Implement config override with env vars

Implement overriding of configuration from the .conf file with environment variables.
Environment variables keys are autogenerated based on the keys defined in .conf file.
Usage example:
$ export CM_DATA_DIR=/usr
$ CM_WORLD_SERVER_PORT=8080 ./mangosd

* Update env var key format and encapsulated env loading logic.

The new env key format:
Mangosd_Rate_Health
Mangosd_DataDir

* Add suggestions from code review.

* Add missing includes.</pre>


Подробнее... (https://github.com/cmangos/mangos-wotlk/commit/6202f3045074980305a950d71e57058cef834427)