-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun.py
More file actions
21 lines (17 loc) · 684 Bytes
/
Copy pathrun.py
File metadata and controls
21 lines (17 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Entry point for the Flask application.
# Imports the application factory function `create_app` from the `app` module
# and uses it to create the Flask app instance.
#
# When this script is run directly (not imported as a module), the development
# server starts on port 5001 with debug mode enabled, which provides:
# - Automatic reloading on code changes
# - An interactive debugger in the browser on errors
# - Detailed error messages in the console
#
# Note: Debug mode should be disabled in production environments.
from dotenv import load_dotenv
load_dotenv()
from app import create_app
app = create_app()
if __name__ == '__main__':
app.run(debug=True, port=5001)