From 3473088c2cd521a31e1d7e19f4b7a2cdf01ae5e4 Mon Sep 17 00:00:00 2001 From: bamurtaugh Date: Fri, 16 Apr 2021 13:47:43 -0700 Subject: [PATCH 1/2] Update ports --- .devcontainer/devcontainer.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8eff288..f06df56 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -28,10 +28,8 @@ // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [8080], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html" - // Use 'portsAttributes' to set default properties for specific forwarded ports. + // You can use a port number (i.e. 8000), range of numbers, or a regex to match the running process. "portsAttributes": { "8000": { "label": "Hello Remote World", @@ -39,6 +37,14 @@ } }, + // Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'. + // "otherPortsAttributes": { + // "onAutoForward": "silent" + // }, + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html" + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode" } From 3c3a93799271fea0569e7be15d0d1d92663b041e Mon Sep 17 00:00:00 2001 From: bamurtaugh Date: Mon, 19 Apr 2021 12:36:31 -0700 Subject: [PATCH 2/2] Update comment --- .devcontainer/devcontainer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f06df56..bca5f57 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -28,8 +28,7 @@ // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [8080], - // Use 'portsAttributes' to set default properties for specific forwarded ports. - // You can use a port number (i.e. 8000), range of numbers, or a regex to match the running process. + // Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference. "portsAttributes": { "8000": { "label": "Hello Remote World",