diff options
Diffstat (limited to 'backend/localplatform.py')
| -rw-r--r-- | backend/localplatform.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/localplatform.py b/backend/localplatform.py index a788d59f..5febfcaf 100644 --- a/backend/localplatform.py +++ b/backend/localplatform.py @@ -32,7 +32,10 @@ def get_server_port() -> int: return int(os.getenv("SERVER_PORT", "1337")) def get_live_reload() -> bool: - os.getenv("LIVE_RELOAD", "1") == "1" + return os.getenv("LIVE_RELOAD", "1") == "1" + +def get_keep_systemd_service() -> bool: + return os.getenv("KEEP_SYSTEMD_SERVICE", "0") == "1" def get_log_level() -> int: return {"CRITICAL": 50, "ERROR": 40, "WARNING": 30, "INFO": 20, "DEBUG": 10}[ |
