21 lines
498 B
Python
21 lines
498 B
Python
import eventlet
|
|
eventlet.monkey_patch()
|
|
from bootstrap import bootstrap_paths
|
|
bootstrap_paths()
|
|
from apps import create_app
|
|
from apps.extensions import socketio
|
|
|
|
app = create_app()
|
|
|
|
if __name__ == "__main__":
|
|
socketio.run(
|
|
app,
|
|
host="127.0.0.1",
|
|
port=5551,
|
|
debug=False, # 开发期打开
|
|
# allow_unsafe_werkzeug=True, # 避免 dev server 的安全限制提示
|
|
# ssl_context=('server.crt', 'server.key')
|
|
)
|
|
|
|
|