chore(release): initialize separated production env
This commit is contained in:
@@ -83,7 +83,7 @@ def validate(values: dict[str, str], strict_external: bool) -> list[str]:
|
||||
errors.append("DEBUG must be false in production")
|
||||
|
||||
external_requirements = []
|
||||
if strict_external or is_enabled(values.get("ENABLE_EMAIL_DELIVERY")):
|
||||
if is_enabled(values.get("ENABLE_EMAIL_DELIVERY")):
|
||||
external_requirements.extend(REQUIRED_SMTP)
|
||||
if strict_external:
|
||||
external_requirements.extend(REQUIRED_OSS)
|
||||
@@ -117,7 +117,7 @@ def main() -> int:
|
||||
parser.add_argument(
|
||||
"--strict-external",
|
||||
action="store_true",
|
||||
help="Require SMTP, Redis sessions, and OSS credentials for production readiness.",
|
||||
help="Require Redis sessions and OSS credentials for production readiness. SMTP is required only when ENABLE_EMAIL_DELIVERY=true.",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user