Fixed environment issues
This commit is contained in:
@@ -22,8 +22,9 @@ from dotenv import load_dotenv
|
||||
|
||||
REPO_ROOT = Path(__file__).parent.parent
|
||||
|
||||
# Load secrets from docker/.env (symlink to ~/.config/ignition-dev/secrets.env)
|
||||
# Load secrets — try docker/.env symlink first, then the canonical secrets file
|
||||
load_dotenv(REPO_ROOT / "docker" / ".env")
|
||||
load_dotenv(Path.home() / ".config" / "ignition-dev" / "secrets.env")
|
||||
|
||||
WIKIJS_URL = os.environ.get("WIKIJS_URL", "https://wikijs.primecontrols-dev.com")
|
||||
WIKIJS_API_KEY = os.environ["WIKIJS_API_KEY"] # loud failure if missing
|
||||
|
||||
Reference in New Issue
Block a user