Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce8e199 commit 1fe999aCopy full SHA for 1fe999a
1 file changed
.devcontainer/devcontainer.json
@@ -59,16 +59,16 @@
59
},
60
61
// Lifecycle commands
62
- "onCreateCommand": [
+ "onCreateCommand": "npm ci",
63
+ "postStartCommand": "nohup bash -c 'npm start &'",
64
+ // Set the port to be public
65
+ "postAttachCommand": [
66
"npm set \"//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN\"",
67
"npm set \"@github:registry=https://npm.pkg.github.com/\"",
68
"npm install -g @github/copilot",
- "npm ci"
69
+ "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\""
70
],
- "postStartCommand": "nohup bash -c 'npm start &'",
- // Set the port to be public
- "postAttachCommand": "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\"",
71
-
+
72
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
73
"remoteUser": "node",
74
0 commit comments