Skip to content

Commit

Permalink
fix: env dir
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 5, 2024
1 parent d5b1c7e commit d7cf52d
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ celerybeat.pid
*.sage.py

# Environments
.env.local.secrets
.venv
env/
env/.env.local.secrets
venv/
ENV/
env.bak/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def set_up_settings(service_base_dir: Path, service_name: str):
# env = t.cast(Env, os.environ["ENV"])
env = os.environ["ENV"]

load_dotenv(f".env/.env.{env}", override=False)
load_dotenv(".env/.env", override=False)
load_dotenv(f"env/.env.{env}", override=False)
load_dotenv("env/.env", override=False)

if env == "local":
secrets_path = ".env/.env.local.secrets"
secrets_path = "env/.env.local.secrets"
# TODO: move this to the dev container setup script.
if not os.path.exists(secrets_path):
with open(secrets_path, "w+", encoding="utf-8") as secrets_file:
Expand Down

0 comments on commit d7cf52d

Please sign in to comment.