Skip to content

Commit d7cf52d

Browse files
committed
fix: env dir
1 parent d5b1c7e commit d7cf52d

7 files changed

+4
-5
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ celerybeat.pid
125125
*.sage.py
126126

127127
# Environments
128-
.env.local.secrets
129128
.venv
130-
env/
129+
env/.env.local.secrets
131130
venv/
132131
ENV/
133132
env.bak/

.env/.env env/.env

File renamed without changes.
File renamed without changes.

.env/.env.local env/.env.local

File renamed without changes.
File renamed without changes.

.env/.env.staging env/.env.staging

File renamed without changes.

settings.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ def set_up_settings(service_base_dir: Path, service_name: str):
7373
# env = t.cast(Env, os.environ["ENV"])
7474
env = os.environ["ENV"]
7575

76-
load_dotenv(f".env/.env.{env}", override=False)
77-
load_dotenv(".env/.env", override=False)
76+
load_dotenv(f"env/.env.{env}", override=False)
77+
load_dotenv("env/.env", override=False)
7878

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

0 commit comments

Comments
 (0)