From c321de13fdcfe6de36271df128e09a34b5071b47 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 13 Nov 2023 00:48:45 -0800 Subject: [PATCH] Don't reload backend on wwwroot changes. --- cista/serve.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cista/serve.py b/cista/serve.py index f9b5fa2..6c1e310 100644 --- a/cista/serve.py +++ b/cista/serve.py @@ -1,6 +1,6 @@ import os import re -from pathlib import Path, PurePath +from pathlib import Path from sanic import Sanic @@ -15,7 +15,6 @@ def run(*, dev=False): # Silence Sanic's warning about running in production rather than debug os.environ["SANIC_IGNORE_PRODUCTION_WARNING"] = "1" confdir = config.conffile.parent - wwwroot = PurePath(__file__).parent / "wwwroot" if opts.get("ssl"): # Run plain HTTP redirect/acme server on port 80 server80.app.prepare(port=80, motd=False) @@ -27,7 +26,7 @@ def run(*, dev=False): motd=False, dev=dev, auto_reload=dev, - reload_dir={confdir, wwwroot}, + reload_dir={confdir}, access_log=True, ) # type: ignore if dev: