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" + ] } 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/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" 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