From b1dc9892d5c5d728c631512c16ea19359fd3b35b Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 8 Jan 2024 14:50:17 +0000 Subject: [PATCH] [dev] open port 8000 when forwarded --- .devcontainer/devcontainer.json | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index af0f8a42..455a8766 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,11 +11,16 @@ "workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind", "workspaceFolder": "/app", - // 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": [8000], + "portsAttributes": { + "8000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + "otherPortsAttributes": { + "onAutoForward": "silent" + }, "updateContentCommand": "composer install", "postCreateCommand": "./.docker/entrypoint.sh unitd --no-daemon --control unix:/var/run/control.unit.sock",