Open davorg opened 6 years ago
I will have a look at this for the Pull Request Club. Do you mind adding extra dependencies?
Not at all. I'd prefer them to be optional, if possible. Perhaps it could revert to the current behaviour if they aren't available.
You're saying that serve
calls build
, but I don't see that. It just gets App::HTTPThis to serve the directory.
It's possible I'm describing what should happen rather than what does happen :-/
Or, maybe, you've found a bug.
I think no code whatsoever towards a feature doesn't technical count as a bug. ;)
I guess I found wishful thinking on your part. I'll add it in. Seems easy enough.
Do you have a demo system for me to work with?
Yeah. https://github.com/davorg/whonews.tv is a web site that's built using Aphra.
Thanks. I have looked at Filesys::Notify::Simple, which is what Plack::Runner/Plack::Loader uses to do reloads. I would prefer to actually use the Plack::Loader::Restarter directly instead of hacking forks into this thing, but App::HTTPThis does not support shoving in extra Plack bits as it brings its own runner that cannot easily be changed. I was thinking of patching a reload feature in, but @melo has removed the App::HTTPThis repository from his github account. I've contacted him to see what's going on there.
Currently, the
serve
action, runsbuild
and then serves a static site. Can we monitor the input directories and rebuild the site if anything changes?