-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow to use filesystem polling in watch mode (was: Debug in Docker) #215
Comments
@barfet Thanks for the kick-off of the topic 🙌 . You should base your tests on version 3 of the plugin which will be released end of this week (a stable rc is already available at |
@HyperBrain thanks for the info, great stuff in V3! But, the use of But I have an issue with Do you support this kind of scenario? (recompilation source files when sls offline processes is already started)? As I said this is perfectly working but just with Thanks! |
In general, You should not need to trigger |
FYI: This is the only command we run: This starts the APIG endpoint emulation and automatically rebuilds the sources with webpack on any source changes. It should not matter if you use In theory this should also work, if you enable Node's debug mode. |
Here's a sample screen output of serverless-offline:
So you see, as soon as the file changed, |
@HyperBrain Thanks for the detailed explanation! I tried your approach and it's perfectly working without Docker (on file changes Webpack is triggered and recompiled), but when I run the same inside of Docker container with volumes mapping than webpack doesn't recompile when files was modified in host machine. But is recompiling when I manually modify them inside the container. Maybe you faced something similar? |
That's an interesting behavior. I never used the watch mechanism on a mapped volume though. |
It may be the same issue as |
I see. Just checked the webpack API watch configuration options here. It seems that it is possible to switch webpack's file watch to poll mode too. Maybe a commandline option I will change the topic of this issue - because eventually it is about "Allow to use polling for watch mode" and flag it as feature. This should solve your problem completely. |
Can you comment our findings in dherault/serverless-offline#300, because it can be solved completely in |
|
Released with |
Hi guys,
Thanks for your efforts in this project.
I have created a question in related sls project
serverless-offline
and will duplicate it here, because of adjacent functionality.dherault/serverless-offline#300
It would be great to hear some thoughts regarding the topic.
Thanks!
The text was updated successfully, but these errors were encountered: