-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Compose Watch With “node –watch” Only Reloads First Time #11090
Comments
+1, experienced this exact scenario with my local project too. |
is there any way to help move forward with this? |
I can reproduce this scenario, investigating... |
Seems to me this is a
AFAICT the reason for this is that after a |
Interesting... what do you propose? |
I need to check the same applies to a plain Linux hosts, then if confirmed, this issue should be reported to nodeJS. |
I can't reproduce file inode change when running on a plain Linux VM. I wonder this issue could be a side effect for overlay filesystem used by container, but unclear to me |
I used
Note the As this issue is not specific to Docker Compose I created moby/moby#47061 and will close this one. If some workaround is suggested there we can apply to compose, we obviously would adopt it. |
Thanks for looking into this. Can you explain why the first change is detected? |
|
ah! Makes sense. Thanks! 🙏 🙏 |
Node issue: nodejs/node#51621 |
Description
I am trying to use compose watch to get a node server to reload on change using "node --watch"
Current Behaviour:
Server correctly reloads on first change. On subsequent changes, the logs show the file has been synced and I can see the file in the container is updated, but the server does not reload.
Expected Behaviour
Server correctly reloads on all changes.
Steps To Reproduce
Compose Version
Docker Environment
Anything else?
The link below goes directly to the part of the video where I demonstrate this issue.
https://youtu.be/HkLR26VY07c?t=675
The text was updated successfully, but these errors were encountered: