From 8845a188d659a38fc2f889106ab9c7d4e3a6b912 Mon Sep 17 00:00:00 2001 From: Christopher Harrison Date: Fri, 10 Oct 2025 16:26:02 +0000 Subject: [PATCH 1/3] Update bindings for localhost --- client/astro.config.mjs | 5 +++++ server/app.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client/astro.config.mjs b/client/astro.config.mjs index 7fc9b996..61851b8c 100644 --- a/client/astro.config.mjs +++ b/client/astro.config.mjs @@ -18,4 +18,9 @@ export default defineConfig({ adapter: node({ mode: 'standalone' }), + + server: { + host: '0.0.0.0', + port: 4321 + } }); \ No newline at end of file diff --git a/server/app.py b/server/app.py index cc5c6f7f..c02e0a23 100644 --- a/server/app.py +++ b/server/app.py @@ -22,4 +22,4 @@ app.register_blueprint(games_bp) if __name__ == '__main__': - app.run(debug=True, port=5100) # Port 5100 to avoid macOS conflicts \ No newline at end of file + app.run(debug=True, port=5100, host='0.0.0.0') # Bind to 0.0.0.0 for dev container access \ No newline at end of file From 967b30ed7ad5c8704d8cf1d8a51b37d919ae4d7d Mon Sep 17 00:00:00 2001 From: Christopher Harrison Date: Fri, 10 Oct 2025 16:26:11 +0000 Subject: [PATCH 2/3] Update Python devcontainer image from bullseye to bookworm --- .devcontainer/devcontainer.json | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 97dcbf5f..37ca62fb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ { "name": "Python 3", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye", + "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm", "features": { "ghcr.io/devcontainers/features/node:1": {}, "ghcr.io/schlich/devcontainer-features/playwright:0": {}, @@ -23,21 +23,9 @@ } }, - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, - // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [ 4321, 5100 - ], - - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "pip3 install --user -r requirements.txt", - - // Configure tool-specific properties. - // "customizations": {}, - - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" + ] } From 53c600649d68c0c3a1102e3cb17a58016ac20bb3 Mon Sep 17 00:00:00 2001 From: Christopher Harrison Date: Fri, 10 Oct 2025 16:26:16 +0000 Subject: [PATCH 3/3] Add commands to disable Astro telemetry and install Playwright in setup script --- scripts/setup-env.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/setup-env.sh b/scripts/setup-env.sh index 9fa7b31f..9867b724 100755 --- a/scripts/setup-env.sh +++ b/scripts/setup-env.sh @@ -26,6 +26,8 @@ pip install -r server/requirements.txt echo "Installing client dependencies..." cd client || exit 1 npm install +npx astro telemetry disable +npx playwright install # Return to project root cd "$PROJECT_ROOT"