Fixing issues with env
All checks were successful
Build and Publish Docker Image / build (push) Successful in 3m33s
All checks were successful
Build and Publish Docker Image / build (push) Successful in 3m33s
This commit is contained in:
parent
90fd42782a
commit
88d4fc909a
3 changed files with 36 additions and 8 deletions
|
@ -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__))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue