HMR doesn't work with docker #115

Closed
opened 2025-08-09 17:15:03 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @pmaza on 3/26/2018

Hi!

We have a problem with docker. When we deploy the app in debug mode with docker, the changes from server don't reflect in the container. It seems that the port where angular cli is listenning should be open in the docker container.
I think that the problem is when the method UseAngularCliServer exec the npm script (start script in this case), the port is assigned randomly, so we can't know which port is used by angular cli to listen the changes from server.
We need to know/set the port where hmr is working to open it in the container definition.

*Originally created by @pmaza on 3/26/2018* Hi! We have a problem with docker. When we deploy the app in debug mode with docker, the changes from server don't reflect in the container. It seems that the port where angular cli is listenning should be open in the docker container. I think that the problem is when the method UseAngularCliServer exec the npm script (start script in this case), the port is assigned randomly, so we can't know which port is used by angular cli to listen the changes from server. We need to know/set the port where hmr is working to open it in the container definition.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#115
No description provided.