-
Notifications
You must be signed in to change notification settings - Fork 47
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
Changes not being triggered on Docker #79
Comments
@zefexdeveloper So the file watcher is chokidar. I didn't find much on Docker, but I did find paulmillr/chokidar#590. Have you had any luck with chokidar directly or any other file watchers for node.js? |
@blakeembrey I haven't tried chokidar directly on docker to be honest. I was using |
@zefexdeveloper Can you try https://github.com/Qard/onchange#poll--p-ms---poll-ms as a workaround for now? It might be an issue with the mounted directory in Docker so polling would be a workaround (I know Windows mounted partitions have a similar issue). |
@zefexdeveloper It's having the same problem as I was having with
|
@zefexdeveloper You're saying it isn't closing the previous process before starting a new process? That seems odd since it listens for |
@blakeembrey Yes, it's really weird, but it's like opening a new process and that is why it's saying that the port is already in use. |
@blakeembrey It was fixed in |
I have this simple setup for testing purposes:
Dockerfile
:docker-compose.yml
:index.js
:In my
package.json
I have a script that is:It does work locally in my computer, however when running in a Docker container it doesn't detect the changes and nothing happens.
The text was updated successfully, but these errors were encountered: