Skip to content

Commit

Permalink
[dev] open port 8000 when forwarded
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Jan 8, 2024
1 parent 1df5371 commit b1dc989
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b1dc989

Please sign in to comment.