()
| 64 | |
| 65 | |
| 66 | def check_env_file() -> bool: |
| 67 | env_path = PROJECT_ROOT / ".env" |
| 68 | example_path = PROJECT_ROOT / ".env.example" |
| 69 | status(example_path.exists(), ".env.example") |
| 70 | status(env_path.exists(), ".env", "copy .env.example to .env before deployment" if not env_path.exists() else "") |
| 71 | if load_dotenv and env_path.exists(): |
| 72 | load_dotenv(env_path) |
| 73 | return env_path.exists() |
| 74 | |
| 75 | |
| 76 | def check_env_group(title: str, names: list[str]) -> bool: |