Made hot fixes
This commit is contained in:
parent
87dda5c9a3
commit
91c8b0f64f
14
src/app.py
14
src/app.py
@ -1,6 +1,9 @@
|
||||
import eventlet
|
||||
eventlet.monkey_patch(all=True)
|
||||
|
||||
from eventlet import wsgi
|
||||
from eventlet.greenio import GreenSocket
|
||||
|
||||
from flask_cors import CORS
|
||||
from pymongo import MongoClient
|
||||
|
||||
@ -29,6 +32,17 @@ if db is not None:
|
||||
else:
|
||||
print('Failed to connect to MongoDB')
|
||||
|
||||
def check_environment():
|
||||
import sys
|
||||
print("=== Environment Check ===")
|
||||
print(f"Python version: {sys.version}")
|
||||
print(f"Eventlet version: {eventlet.__version__}")
|
||||
print(f"GreenSocket available: {'eventlet.greenio.GreenSocket' in sys.modules}")
|
||||
print(f"Patched modules: {[m for m in sys.modules if m.startswith('__patched_module_')]}")
|
||||
print("========================")
|
||||
|
||||
check_environment()
|
||||
|
||||
if __name__ == '__main__':
|
||||
#app.run(debug=True)
|
||||
socketio.run(app, host=Config.APP_HOST, debug=False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user