#!/usr/bin/env python3 """ Main entry point for the Markov Economics Flask application. Demonstrates how capitalism "eats the world" using Markov chains. """ import os from app import create_app, socketio config_name = os.getenv('FLASK_CONFIG', 'development') app = create_app(config_name) if __name__ == '__main__': debug_mode = os.getenv('FLASK_ENV', 'development') == 'development' # For production deployment, allow unsafe werkzeug or use a proper WSGI server if os.getenv('FLASK_ENV') == 'production': socketio.run(app, debug=False, host='0.0.0.0', port=5000, allow_unsafe_werkzeug=True) else: socketio.run(app, debug=debug_mode, host='0.0.0.0', port=5000)