Skip to content

Commit

Permalink
devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinDFuller committed Nov 19, 2023
1 parent 32a9e0f commit 95fc30b
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"init": true,
"name": "justindfuller",
"forwardPorts": [9000],
"containerEnv": {
"PORT": "9000"
},
"features": {
"ghcr.io/devcontainers/features/go:1": {
"version": "1.21.1",
Expand All @@ -13,5 +10,34 @@
"hostRequirements": {
"cpus": 1
},
"postCreateCommand": "make server-watch"
"image": "mcr.microsoft.com/devcontainers/universal:2",
"waitFor": "onCreateCommand",
"updateContentCommand": "go mod download",
"postCreateCommand": "go install github.com/cespare/reflex@latest",
"postAttachCommand": {
"server": "make server-watch"
},
"customizations": {
"codespaces": {
"openFiles": [
"README"
]
},
"vscode": {
"settings": {},
"extensions": [
"golang.go",
"dbaeumer.vscode-eslint",
"ms-vscode.makefile-tools",
"DavidAnson.vscode-markdownlint",
"eamodio.gitlens"
]
}
},
"portsAttributes": {
"9000": {
"label": "Application",
"onAutoForward": "openBrowserOnce"
}
}
}

0 comments on commit 95fc30b

Please sign in to comment.