Initial commit: Quality App v2 - FG Scan Module with Reports
This commit is contained in:
31
run.py
Normal file
31
run.py
Normal file
@@ -0,0 +1,31 @@
|
||||
"""
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user