From eac37ef02bb25d606ca773d84b20b7fe14cef482 Mon Sep 17 00:00:00 2001 From: bloombar Date: Sat, 25 Nov 2023 17:41:46 -0500 Subject: [PATCH] load env first --- app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index bdc1360..5348ac5 100644 --- a/app.py +++ b/app.py @@ -9,13 +9,13 @@ from bson.objectid import ObjectId from dotenv import load_dotenv -# instantiate the app -app = Flask(__name__) - # load credentials and configuration options from .env file # if you do not yet have a file named .env, make one based on the template in env.example load_dotenv() # take environment variables from .env. +# instantiate the app +app = Flask(__name__) + # # turn on debugging if in development mode # if os.getenv("FLASK_ENV", "development") == "development": # # turn on debugging, if in development @@ -131,4 +131,4 @@ def handle_error(e): # import logging # logging.basicConfig(filename='/home/ak8257/error.log',level=logging.DEBUG) - app.run(port=FLASK_PORT, debug=True) + app.run(port=FLASK_PORT)