diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 874d8d6..b34f366 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,9 +1,6 @@ { "name": "Rust", "image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye", - - "postStartCommand": "cargo build && clear", - "customizations": { "vscode": { "settings": {}, @@ -44,11 +41,14 @@ } }, + "forwardPorts": [8080], "portsAttributes": { "8080": { "label": "Rust Application", "onAutoForward": "notify" } - } + }, + + "postAttachCommand": "cargo build && clear" } \ No newline at end of file