skywire icon indicating copy to clipboard operation
skywire copied to clipboard

Live-reload on config changes + Integrated autoconfig

Open 0pcom opened this issue 3 years ago • 0 comments

Live-reload on config changes

The process or service currently needs to be restarted in order for config changes or updates to take effect.

In the context of package updates or new installations, it is appropriate for the process to be restarted, but on simple config changes it should be possible to 'live-reload'

While it is a minor annoyance, a more robust system can possibly be implemented to adapt the running state on config changes; or perhaps a --watch mode of running the visor (as is used by caddy server)

Integrated autoconfig

Currently, the config file generation is handled in the package postinstall process by the skywire-autoconfig script. A similar functionality could be implemented in the source code itself as skywire-cli config auto

I suggest not getting rid of the skywire-autoconfig script, but instead leaving that as a fallback, which can be easily substituited at the package level in case issues arise with the skywire-cli config auto command.

0pcom avatar Sep 08 '22 16:09 0pcom