Merge pull request #1987 from Tyriar/1986_localhost

Recommend 127.0.0.1:3000 on mac and linux too
This commit is contained in:
Daniel Imms
2019-03-30 15:36:42 -07:00
committed by GitHub
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -23,10 +23,7 @@
"type": "chrome",
"request": "launch",
"name": "Demo Client",
"url": "http://0.0.0.0:3000",
"windows": {
"url": "http://127.0.0.1:3000"
},
"url": "http://127.0.0.1:3000",
"webRoot": "${workspaceFolder}/"
},
{
+1 -1
View File
@@ -99,7 +99,7 @@ function startServer() {
var port = process.env.PORT || 3000,
host = os.platform() === 'win32' ? '127.0.0.1' : '0.0.0.0';
console.log('App listening to http://' + host + ':' + port);
console.log('App listening to http://127.0.0.1:' + port);
app.listen(port, host);
}