Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync config changes in real time #61

Closed
terreng opened this issue Jan 29, 2022 · 3 comments · Fixed by #114
Closed

Sync config changes in real time #61

terreng opened this issue Jan 29, 2022 · 3 comments · Fixed by #114
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@terreng
Copy link
Owner

terreng commented Jan 29, 2022

Use fs.watchFile to detect changes to the config file. Update servers and UI in real time without needing to restart the program.

Perhaps show a banner on the main list / refresh button icon at the top. Click to reload from config file. Essentially just restarts the program. Detect changes to config outside of program.

@terreng terreng added the enhancement New feature or request label Jan 29, 2022
@terreng terreng self-assigned this Jan 29, 2022
@dougouverson
Copy link

It would be nice if when I save a file that the browser would auto-refresh.

@ethanaobrien
Copy link
Collaborator

It would be nice if when I save a file that the browser would auto-refresh.

That couldn't be supported. The file would need to have javascript code thrown into it and keep a socket connection open with the server to know when to refresh. This issue is about the config file for the server settings, to refresh the app settings when the app settings are changed

@terreng
Copy link
Owner Author

terreng commented Nov 4, 2022

It would be nice if when I save a file that the browser would auto-refresh.

Thanks for the suggestion! This could be possible, but it would require injecting some additional code into the page, and would only work with .html files. I know that some JavaScript frameworks take this approach already, and it would certainly be handy to have the page update whenever you make a change. We'll consider adding this as an optional feature in a future release.

I went ahead and parked the idea in issue #106. Let us know if you have any additional ideas or suggestions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants