Skip to content

Commit

Permalink
fix: key errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 6, 2024
1 parent dae7c88 commit 883da0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions codeforlife/settings/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
from ..types import Env

# The name of the current environment.
ENV = t.cast(Env, os.environ["ENV"])
ENV = t.cast(Env, os.getenv("ENV", "local"))

# The base directory of the current service.
SERVICE_BASE_DIR = Path(os.environ["SERVICE_BASE_DIR"])
SERVICE_BASE_DIR = Path(os.getenv("SERVICE_BASE_DIR", "/"))

# The name of the current service.
SERVICE_NAME = os.environ["SERVICE_NAME"]
SERVICE_NAME = os.getenv("SERVICE_NAME", "REPLACE_ME")

# If the current service the root service. This will only be true for portal.
SERVICE_IS_ROOT = bool(int(os.getenv("SERVICE_IS_ROOT", "0")))
Expand Down

0 comments on commit 883da0a

Please sign in to comment.