From c8cc0c308a10e8db17284904d4443df244db05a8 Mon Sep 17 00:00:00 2001 From: Adrian Gunnar Lauterer Date: Sun, 8 Sep 2024 03:45:26 +0200 Subject: [PATCH] test5 --- flake.nix | 1 + src/ozai_webui/__init__.py | 4 ++-- src/run.sh | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index ebd78b9..a07bb7f 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/src/ozai_webui/__init__.py b/src/ozai_webui/__init__.py index 412207f..b1ebce5 100755 --- a/src/ozai_webui/__init__.py +++ b/src/ozai_webui/__init__.py @@ -220,8 +220,8 @@ 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) - #return socketio.run(app, debug=False, host=ozai_webui_host, port=ozai_webui_port, allow_unsafe_werkzeug=True) + 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) if __name__ == '__main__': diff --git a/src/run.sh b/src/run.sh index 18df1a5..93f1eae 100644 --- a/src/run.sh +++ b/src/run.sh @@ -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 -