chore: deployment move to docker only
This commit is contained in:
@@ -19,12 +19,12 @@ from dotenv import load_dotenv
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
||||
# Optional: point this at a KEY=value file (see
|
||||
# deploy/supervisor/polylan-submitter.env.dist for the template, and
|
||||
# deploy/supervisor/polylan-submitter.conf for how it's wired up in
|
||||
# production) to fill in the env vars read throughout this file. override
|
||||
# =False so an already-exported env var always wins over the file - this
|
||||
# only fills gaps, same as every os.environ.get() below already treating a
|
||||
# merely-blank value as "use my own default" rather than "".
|
||||
# deploy/docker/polylan-submitter.env.dist for the template - unused in the
|
||||
# Docker deploy itself, which passes env vars directly via `docker run
|
||||
# --env-file` instead) to fill in the env vars read throughout this file.
|
||||
# override=False so an already-exported env var always wins over the file -
|
||||
# this only fills gaps, same as every os.environ.get() below already
|
||||
# treating a merely-blank value as "use my own default" rather than "".
|
||||
if os.environ.get("SETTINGS_ENV_FILE_LOCATION"):
|
||||
load_dotenv(os.environ["SETTINGS_ENV_FILE_LOCATION"], override=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user