Fixing issues with env
All checks were successful
Build and Publish Docker Image / build (push) Successful in 3m33s

This commit is contained in:
Timothy Rogers 2025-05-24 14:04:51 -04:00
parent 90fd42782a
commit 88d4fc909a
3 changed files with 36 additions and 8 deletions

View file

@ -1,8 +1,9 @@
import os
from dotenv import load_dotenv
# Load environment variables from .env file
load_dotenv()
# Only load .env file if we're in development
if os.environ.get('FLASK_ENV') != 'production':
load_dotenv()
BASE_DIR = os.path.abspath(os.path.dirname(__file__))