19 lines
497 B
Python
19 lines
497 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
WSGI Entry Point for Trasabilitate Application
|
|
This file serves as the entry point for WSGI servers like Gunicorn.
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
from app import create_app
|
|
|
|
# Add the current directory to Python path
|
|
sys.path.insert(0, os.path.dirname(__file__))
|
|
|
|
# Create the Flask application instance
|
|
application = create_app()
|
|
|
|
# For debugging purposes (will be ignored in production)
|
|
if __name__ == "__main__":
|
|
application.run(debug=False, host='0.0.0.0', port=8781) |