Skip to content

Commit

Permalink
added go install air to devcontainer for hot reloading dev server.
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyStiles committed Sep 9, 2023
1 parent 07f1c3e commit 6bc3175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "Go & PostgreSQL",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
Expand All @@ -16,7 +16,7 @@
// "forwardPorts": [5432],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",
"postCreateCommand": "go install github.com/cosmtrek/air@latest",

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
Expand Down

0 comments on commit 6bc3175

Please sign in to comment.