Skip to content

Commit

Permalink
Run site in dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
spenserblack committed Nov 10, 2024
1 parent e2246fb commit d012cfc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@
}
},
"postCreateCommand": ".devcontainer/postCreate.sh",
"postAttachCommand": ".devcontainer/postAttach.sh",
"forwardPorts": [3000],
"portsAttributes": {
"3000": {
"label": "Site",
"onAutoForward": "notify"
}
},
"remoteUser": "node"
}
2 changes: 2 additions & 0 deletions .devcontainer/postAttach.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
pnpm run --filter site dev --port 3000
1 change: 1 addition & 0 deletions .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
pnpm install
pnpm run -w build

0 comments on commit d012cfc

Please sign in to comment.