File size: 727 Bytes
fab54be 7db73fd fab54be | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/usr/bin/env python3
"""
SatVision Backend - Entry Point Script
Refactored monolithic server.py into a modular, production-grade Flask application.
Implements Application Factory pattern with clean separation of concerns.
Usage:
python main.py
"""
from src import config
from src.app import create_app
def main():
"""Main entry point for the backend server."""
print("[SatVision] Production Backend Running...", flush=True)
# Create application instance
app = create_app()
# Run Flask application server
app.run(
host=config.FLASK_HOST,
port=config.FLASK_PORT,
threaded=config.FLASK_THREADED,
debug=False
)
if __name__ == '__main__':
main() |