Config: Also reload env variables

This commit is contained in:
Fijxu
2024-10-30 01:57:06 -03:00
parent 6f10a7c67e
commit 486c5845cd
2 changed files with 46 additions and 8 deletions

View File

@@ -66,11 +66,11 @@ Signal::HUP.trap do
end
{% if flag?(:linux) %}
if CONFIG.reload_config_automatically
if CONFIG.reload_config_automatically
Inotify.watch("config/config.yml") do |event|
Config.reload
end
end
end
{% end %}
HMAC_KEY = CONFIG.hmac_key