diff --git a/backend/custom/environment.py b/backend/custom/environment.py index 5390695f..2336f80b 100644 --- a/backend/custom/environment.py +++ b/backend/custom/environment.py @@ -2,8 +2,7 @@ from functools import wraps from os import getenv -WORKER = getenv("WORKER", "aux") -API_URL = getenv("BASE_URL_API", "https://localhost:8080") +API_URL = getenv("BASE_URL_BACKEND", "https://localhost:8080") SETTINGS = getenv("DJANGO_SETTINGS_MODULE", "backend.settings") @@ -14,13 +13,6 @@ def is_remote(): return False -def is_main(): - """Check if it is main environment""" - if "main" in WORKER: - return True - return False - - def is_dev(): """Check if it is remote development environment""" if is_remote() and "development" in API_URL: @@ -71,7 +63,7 @@ def production_task(func): @wraps(func) def wrapper(*args, **kwargs): - if is_prd() and is_main(): + if is_prd(): return func(*args, **kwargs) return wrapper diff --git a/backend/settings/base.py b/backend/settings/base.py index 1836cd16..72e25fbf 100644 --- a/backend/settings/base.py +++ b/backend/settings/base.py @@ -299,7 +299,7 @@ } # URLs -BACKEND_URL = getenv("BASE_URL_API", "https://localhost:8080") +BACKEND_URL = getenv("BASE_URL_BACKEND", "https://localhost:8080") FRONTEND_URL = getenv("BASE_URL_FRONTEND", "https://localhost:3000") # Discord