PDA

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


newsbot
08.03.2024, 18:40
Автор: walkline

Config: Implement config override with env vars (#502)* Config: Implement config override with env varsImplement 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_HealthMangosd_DataDir* Add suggestions from code review.* Add missing includes.

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