You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hosting my own instance of butler on a server. And since I'm planning to make that instance run with docker instead I thought that I might as well make the config accept env vars with a program flag.
The idea is that by running java -Dconfig_type=env -jar Bot.jar it will switch the way it loads any configurations and parse them from the env instead.
The env keys will most likely be prefixed with BUTLER_ (eg BUTLER_BOT_TOKEN=....).
I'm also going to make a wrapper class that can serialize and deserialize the JSON config when the config type is not set to env.
I made this issue to track any ideas and must-haves before starting.
The text was updated successfully, but these errors were encountered:
I'm hosting my own instance of butler on a server. And since I'm planning to make that instance run with docker instead I thought that I might as well make the config accept env vars with a program flag.
The idea is that by running
java -Dconfig_type=env -jar Bot.jar
it will switch the way it loads any configurations and parse them from the env instead.The env keys will most likely be prefixed with
BUTLER_
(egBUTLER_BOT_TOKEN=....
).I'm also going to make a wrapper class that can serialize and deserialize the JSON config when the config type is not set to env.
I made this issue to track any ideas and must-haves before starting.
The text was updated successfully, but these errors were encountered: