This commit is contained in:
11
mealapi/utils/config.py
Normal file
11
mealapi/utils/config.py
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
|
||||
|
||||
class Config:
|
||||
PORT = 8080
|
||||
DEBUG = os.environ.get("INPUT_SERVICE_DEBUG", "true").lower() in ["true", "yes", "1"]
|
||||
|
||||
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI')
|
||||
# disable this for better performance
|
||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||
Reference in New Issue
Block a user