test5
This commit is contained in:
parent
b66c4e37e3
commit
c8cc0c308a
|
@ -83,6 +83,7 @@ packages.x86_64-linux.ozai-webui-run = pkgs.stdenv.mkDerivation rec {
|
|||
mkdir -p $out/bin/templates
|
||||
mkdir -p $out/bin/static
|
||||
cp -r $src/templates $out/bin/templates
|
||||
cp -r $src/templates $out/bin/templates
|
||||
cp -r $src/static $out/bin/static
|
||||
cp $src/run.sh $out/bin/run
|
||||
chmod +x $out/bin/run
|
||||
|
|
|
@ -220,7 +220,7 @@ def ws_message(data):
|
|||
socketio.emit('move_status', response.text, room=game_id)
|
||||
|
||||
def main ():
|
||||
return app.run(host=ozai_webui_host, port=ozai_webui_port)
|
||||
app.run(host=ozai_webui_host, port=ozai_webui_port)
|
||||
# return socketio.run(app, debug=False, host=ozai_webui_host, port=ozai_webui_port, allow_unsafe_werkzeug=True)
|
||||
# return socketio.run(app, debug=False, host=ozai_webui_host, port=ozai_webui_port)
|
||||
|
||||
|
|
|
@ -17,4 +17,3 @@ STATIC_PATH="${5:-$DEFAULT_STATIC_PATH}"
|
|||
# Run Gunicorn with the specified host, port, and package path
|
||||
#gunicorn -w 1 --chdir "$PACKAGE_PATH" --bind "$HOST:$PORT" __init__:main
|
||||
gunicorn --worker-class eventlet -w 1 --chdir "$PACKAGE_PATH" --bind "$HOST:$PORT" ozai_webui:app
|
||||
|
||||
|
|
Loading…
Reference in New Issue