#!/usr/bin/env python3 """ WSGI entry point for Plutus Flask application. This file is used by gunicorn and other WSGI servers to serve the application. """ import sys import os # Add the application directory to Python path current_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, current_dir) # Import the create_app function from app.py from app import create_app # Create the application instance application = create_app() # Gunicorn looks for 'application' by default, but we can also provide gunicorn_app gunicorn_app = application if __name__ == "__main__": # For development - run with python wsgi.py application.run(debug=False, host='0.0.0.0', port=5000)