Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Allow server configuration at runtime #5

Open
Wesmania opened this issue Dec 15, 2018 · 3 comments
Open

Allow server configuration at runtime #5

Wesmania opened this issue Dec 15, 2018 · 3 comments

Comments

@Wesmania
Copy link
Collaborator

Having to restart the server to change it's configurations is really inconvenient (and 10x so once it's in production). We should find some way to edit at least some settings at runtime.

@norraxx
Copy link
Collaborator

norraxx commented Dec 16, 2018

Decorator on env vars?

@Wesmania
Copy link
Collaborator Author

Which decorator do you have in mind? Also, there's also a question of exposing an interface for changing configuration, and plenty of code needs to be refactored in order to support configuration values that can change.

@norraxx
Copy link
Collaborator

norraxx commented Dec 16, 2018

I suppose, you have config, and you're taking info from variables, "decorate variables", to have all time actual environment.

Unfortunately you may break come running code, like loop will behave different, so you'll need have config copy per request. Or protect every part of code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants