playframework/play-scala-angular-seed

Windows 10 ng server stucks

Mihai-Ionut-Aurel opened this issue · 2 comments

Hi,
I am trying to run the seed UI in Intellij but the UI is not running. So I tried to run ng serve in the UI folder.
The nodejs server starts and the RAM memory that it is occupied grows constantly but the server doesn't run in the end. I have waited for some time with no luck for it.
Do you know why ng serve would take so much time and why it wouldn't work?
I have latest version of nodejs (v8.9.1) and npm(5.5.1).
Thank you!

I think I found the problem. In the "ui" folder ,in the package.json change the line with
"start": "ng serve --open --proxy-config proxy.conf.json",
With:
"start": "ng serve --open --proxy-config proxy.conf.json --host 0.0.0.0 --port 4200"

This seems like a angular cli specific issue
angular/angular-cli#2375

Angular CLI default host is localhost and post is 4200
https://github.com/angular/angular-cli/wiki/serve

For some reason Angular CLI fail to start the application with localhost without explicitly specifying setting the host to 0.0.0.0

I will push an update with host configuration. No need to explicitly specify a port unless you need to override the port.