I have an angular 4 application which is set up in Nanobox.
On the local machine it runs on localhost:4200
on the Nanobox I run it on http://172.21.0.5:4200/
as per Nanobox suggestion.
When the application load in http://172.21.0.5:4200/
I get this error:
zone.js:2933 GET http://localhost:4200/sockjs-node/info?t=1508200471270 net::ERR_CONNECTION_REFUSED
This error doesn't happen in Localhost, and because of that error my live reload is not working.
Thanks in advance.
Edit
It is dev environment. I need somehow tell angular file watcher to communicate with http://0.0.0.0:4200
or http://172.21.0.5:4200
I don't know where is the angular live reload script. I can't find anything online either.
I thought it is Webpack
, but I can't find anything about it.
As per understanding you wanted to run angular application on client machine, to do so follow 3 simple steps
1) enable prod mode-
2) build application in prod mode- base will be set in index.html to navigate all CSS and js files ng build prod --base="/folderName/"
3) deploy dist folder and explore.