From 03ad772dd15c4f8214a1b0addb3ed4f0aec666d6 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Sun, 10 Oct 2021 15:34:00 +0300 Subject: Move Static Build Into Separate Variable Signed-off-by: Hassan Abouelela --- manage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'manage.py') diff --git a/manage.py b/manage.py index 357134ec..90912da3 100755 --- a/manage.py +++ b/manage.py @@ -173,7 +173,9 @@ def main() -> None: # Pass any others directly to standard management commands else: - if _static_build := "distill" in sys.argv[1]: + _static_build = "distill" in sys.argv[1] + + if _static_build: # Build a static version of the site with no databases and API support os.environ["STATIC_BUILD"] = "True" if not os.getenv("PARENT_HOST"): -- cgit v1.2.3