code-server-like
This commit is contained in:
12
code-server-like/run.py
Normal file
12
code-server-like/run.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from app import create_app
|
||||
from app.extensions import socketio
|
||||
app = create_app()
|
||||
|
||||
if __name__ == '__main__':
|
||||
socketio.run(
|
||||
app,
|
||||
host="0.0.0.0",
|
||||
port=5200,
|
||||
debug=True, # 开发期打开
|
||||
allow_unsafe_werkzeug=True, # 避免 dev server 的安全限制提示
|
||||
)
|
||||
Reference in New Issue
Block a user