Skip to content

Commit

Permalink
Work around Docker issue with localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
HWouters committed Dec 11, 2024
1 parent d92bad4 commit d0e4610
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.3/containers/javascript-node
{
"name": "Node.js",
"runArgs": ["--init"],
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
Expand All @@ -22,10 +19,8 @@
]
}
},
"forwardPorts": [4200],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
// "forwardPorts": [4200],

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
Expand Down
3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"proxyConfig": "proxy.config.json",
"buildTarget": "sample-app:build"
"buildTarget": "sample-app:build",
"host": "127.0.0.1"
},
"configurations": {
"production": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"start": "ng serve -o --hmr",
"build": "ng build",
"test": "jest",
"lint": "ng lint",
Expand Down

0 comments on commit d0e4610

Please sign in to comment.