This commit is contained in:
Adrian Gunnar Lauterer 2024-09-08 03:45:26 +02:00
parent b66c4e37e3
commit c8cc0c308a
Signed by: adriangl
GPG Key ID: D33368A59745C2F0
3 changed files with 3 additions and 3 deletions

View File

@ -83,6 +83,7 @@ packages.x86_64-linux.ozai-webui-run = pkgs.stdenv.mkDerivation rec {
mkdir -p $out/bin/templates mkdir -p $out/bin/templates
mkdir -p $out/bin/static mkdir -p $out/bin/static
cp -r $src/templates $out/bin/templates cp -r $src/templates $out/bin/templates
cp -r $src/templates $out/bin/templates
cp -r $src/static $out/bin/static cp -r $src/static $out/bin/static
cp $src/run.sh $out/bin/run cp $src/run.sh $out/bin/run
chmod +x $out/bin/run chmod +x $out/bin/run

View File

@ -220,7 +220,7 @@ def ws_message(data):
socketio.emit('move_status', response.text, room=game_id) socketio.emit('move_status', response.text, room=game_id)
def main (): 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, allow_unsafe_werkzeug=True)
# return socketio.run(app, debug=False, host=ozai_webui_host, port=ozai_webui_port) # return socketio.run(app, debug=False, host=ozai_webui_host, port=ozai_webui_port)

View File

@ -17,4 +17,3 @@ STATIC_PATH="${5:-$DEFAULT_STATIC_PATH}"
# Run Gunicorn with the specified host, port, and package path # Run Gunicorn with the specified host, port, and package path
#gunicorn -w 1 --chdir "$PACKAGE_PATH" --bind "$HOST:$PORT" __init__:main #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 gunicorn --worker-class eventlet -w 1 --chdir "$PACKAGE_PATH" --bind "$HOST:$PORT" ozai_webui:app