""" Application Entry Point Run the Flask application """ from app import create_app, database import os import logging # Create Flask app app = create_app() # Initialize database with app database.init_app(app) # Setup logging logger = logging.getLogger(__name__) if __name__ == '__main__': port = int(os.getenv('APP_PORT', 8080)) host = os.getenv('APP_HOST', '0.0.0.0') debug = os.getenv('FLASK_ENV', 'production') == 'development' logger.info(f"Starting Flask application on {host}:{port}") logger.info(f"Debug mode: {debug}") app.run( host=host, port=port, debug=debug, use_reloader=False )