diff options
author | 2021-10-10 15:34:00 +0300 | |
---|---|---|
committer | 2021-10-10 15:34:00 +0300 | |
commit | 03ad772dd15c4f8214a1b0addb3ed4f0aec666d6 (patch) | |
tree | 44321ddfba33446a7e601b0b0e0ba83317327985 /manage.py | |
parent | Error Out On Missing Files In CI (diff) |
Move Static Build Into Separate Variable
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'manage.py')
-rwxr-xr-x | manage.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"): |