You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from app import socketio, app, init_db, DB_HOST, DB_PORT, DB_NAME
|
|
|
|
if __name__ == '__main__':
|
|
# 在启动应用前初始化云端数据库
|
|
print(f"连接到云端数据库: {DB_HOST}:{DB_PORT}/{DB_NAME}")
|
|
init_db()
|
|
print("启动后端服务器...")
|
|
print("监听所有网络接口 (0.0.0.0:5000)")
|
|
socketio.run(app, debug=True, host='0.0.0.0', port=5000) |