theme-store/gunicorn.conf.py

8 lines
238 B
Python
Raw Permalink Normal View History

2025-02-28 19:59:43 +03:00
import os
from dotenv import load_dotenv
for env_file in ('.env', '.flaskenv'):
# make a .env path
env = os.path.join(os.getcwd(), env_file)
# if .env path exists, load .env file
if os.path.exists(env):
load_dotenv(dotenv_path=env)