mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-01 08:05:25 -05:00
fix(tools): improve devcontainer experience (#62395)
This commit is contained in:
committed by
GitHub
parent
51d65b7941
commit
457123d966
@@ -3,6 +3,23 @@
|
||||
"dockerComposeFile": "docker-compose.yml",
|
||||
"service": "devcontainer",
|
||||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
||||
// "features": {},
|
||||
"forwardPorts": [3000, 8000]
|
||||
"forwardPorts": [3000, 8000],
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"label": "API",
|
||||
"onAutoForward": "silent"
|
||||
},
|
||||
"8000": {
|
||||
"label": "Client",
|
||||
"onAutoForward": "notify"
|
||||
}
|
||||
},
|
||||
"otherPortsAttributes": {
|
||||
"onAutoForward": "silent"
|
||||
},
|
||||
"onCreateCommand": "[ ! -f .env ] && cp sample.env .env || true",
|
||||
"updateContentCommand": "pnpm install && pnpm seed",
|
||||
"postAttachCommand": {
|
||||
"instructions": "bash -c 'echo \"\n\n\n Start a new terminal and run \\`pnpm run develop\\` when you are ready.\n\n\n\"'"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user