statik icon indicating copy to clipboard operation
statik copied to clipboard

'statik --watch' does not monitor project definition modifications

Open tombreit opened this issue 7 years ago • 5 comments

When running Statik in --watch mode, it does not monitor modifications of the project configuration config.yml (e.g. does not restart HTTP server).

tombreit avatar Aug 06 '17 19:08 tombreit

This has been by design from the beginning so far, unfortunately. How often do you make changes to your project configuration?

thanethomson avatar Aug 07 '17 06:08 thanethomson

No, that's not a problem, I just did not know that this is the expected behavior while working on a navigation_bar static context var in my config.yml. Perhaps a short notice on https://github.com/thanethomson/statik/wiki/Project-configuration would have prevented this notice;-)

tombreit avatar Aug 07 '17 10:08 tombreit

Yes, that is something that I'd actually like to facilitate in future. It's a tricky feature, so I'll have to put it on the todo list for some point soon when I've got some spare time 😀

thanethomson avatar Aug 08 '17 07:08 thanethomson

Might also be worth monitoring the statik library module to restart the watch process also for us when we are developing. ;)

pztrick avatar Aug 09 '17 00:08 pztrick

This probably requires some enhancements to https://github.com/thanethomson/httpwatcher , or using a different http server which allows more granular control over what is watched.

jayvdb avatar Nov 18 '18 03:11 jayvdb