Skip to content

Reload configuration without restarting process #10922

Answered by chris48s
jimsheldon asked this question in General
Discussion options

You must be logged in to vote

Actually, I will just answer for both cases.

For production usage, docker image, etc we just run node server.js which doesn't do any kind of monitoring or reloading. For stability and predictability of service, this is a good thing and I don't think we should change it.

For local dev, we do hot reloads with nodemon. https://www.npmjs.com/package/nodemon By default it doesn't look at yaml files so that's probably why it doesn't reload the dev server when settings are changed. I've not tested, but I reckon we could probably tell nodemon to also monitor yaml files and that would also give us hot reload on settings in local dev. If you have a go at that and it works, feel free to PR it.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@chris48s
Comment options

Answer selected by jimsheldon
@jNullj
Comment options

jNullj Mar 5, 2025
Collaborator

@jimsheldon
Comment options

@jNullj
Comment options

jNullj Mar 8, 2025
Collaborator

Comment options

You must be logged in to vote
1 reply
@jimsheldon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants