spanezz / staticsite

Static site generator
GNU General Public License v3.0
45 stars 7 forks source link

Livereload not (always) working #29

Closed spanezz closed 4 years ago

spanezz commented 4 years ago

(from a conversation with @DonKult)

It is a great feature, then it works. Sadly it isn't always. Sometimes it just stops noticing changes. And if it does even manual reload isn't working anymore. No idea how to debug this. Also, modifying staticsite itself or features seems to more often than not crash 'ssite serve' – not really, sadly, the server is still running, it just doesn't serve anything anymore.

Yes, indeed, and I find it very frustrating. See lepture/python-livereload#176 and lepture/python-livereload#170.

This adds to my itch of ditching livereload and implementing the thing properly.

I also happen to have recently written code to do inotify from python and asyncio reasonably painlessly: https://github.com/himblick/himblick/blob/master/himblib/player.py#L317

livereload was kind of too good to be true, and thanks to it ssite serve quickly wrote itself, which was great.

It might be that the 'too good to be true' is reaching its limit.