fix: change env variable to correct name
This commit is contained in:
@@ -4,7 +4,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
# === Prompt user input === #
|
# === Prompt user input === #
|
||||||
react_api_url = input("🔧 Enter the REACT_APP_API_BASE_URL (e.g. https://minxa.wtf): ").strip()
|
react_api_url = input("🔧 Enter the REACT_APP_API_BASE_URL (e.g. https://minxa.wtf): ").strip()
|
||||||
allowed_origins = input("🔒 Enter allowed CORS origins for the backend comma-separated (e.g. https://minxa.lol,https://minxo.lol): ").strip()
|
allow_origins = input("🔒 Enter allowed CORS origins for the backend comma-separated (e.g. https://minxa.lol,https://minxo.lol): ").strip()
|
||||||
|
|
||||||
# Ask for environment and validate input
|
# Ask for environment and validate input
|
||||||
valid_envs = ["dev", "stage", "prod"]
|
valid_envs = ["dev", "stage", "prod"]
|
||||||
@@ -33,7 +33,7 @@ DATABASE_URL=postgresql+asyncpg://{db_user}:{db_password}@{db_host}:{db_port}/{d
|
|||||||
ENVIRONMENT={environment}
|
ENVIRONMENT={environment}
|
||||||
HASHIDS_SALT={hashids_salt}
|
HASHIDS_SALT={hashids_salt}
|
||||||
ENCODER_ALPHABET={encoder_alphabet}
|
ENCODER_ALPHABET={encoder_alphabet}
|
||||||
ALLOWED_ORIGINS={allowed_origins}
|
ALLOW_ORIGINS={allow_origins}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
backend_env_path = Path("backend/.env")
|
backend_env_path = Path("backend/.env")
|
||||||
|
|||||||
Reference in New Issue
Block a user