-
Notifications
You must be signed in to change notification settings - Fork 2
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
Not functional under docker container. #16
Comments
Can you provide a reproduce-able code with the description in detail so that we can have a look into it? |
Such a quick response:) Actually I am trying your wechaty bot and using your https://github.com/Chatie/wechaty-getting-started |
Thanks for providing that information. If you want to make sure the hot-import part is workable, could you try the other example at https://github.com/Chatie/wechaty-getting-started/tree/master/examples/professional/hot-import-bot because that's written by me and it should work without any problem? The |
I got a little confused. I have tried to change some log content in the listeners\on-message.js while the bot is running, but the log content remains the same after the change. |
The latest version of published docker image and npm module had all included this feature as well. Please pay attention on the above lines, like Inside Wechaty, if we found you passed a |
I understand your explain and point. The issue is I am not able to see the hot-import working at my environment. After switching the content inside the onMessage file, nothing changed for the robot. I have even tried delete the on-message file and everything still works fine. Both the cnpm(taobao) image and npm image is not working. I will try check whether some default caching mechanism has been enabled for the docker container on win10. Thanks for your explain. |
Can you try it without docker? It might be related to the docker container because we have limited privileges inside the docker. I had run this example under native Linux without any problem before. P.S. after the handler file is loaded, the node system can work without any problem even you delete the handler file, this is the right behavior. |
Ha, it is fully functional without docker. It is working fine in windows node envirnoment. Will close this issue and try reproducing hot-import issue in event listener seperately. It's up to you to check the container issue, I will also try on a different OS. Thanks for your time! |
Glad to hear that, and I think we should keep this issue open as a bug with container technology. |
Basically two issues:
When I use something like:
like the sample, I am getting an error says configF is not a function.
When I try something like:
while the "config.js" has the content like this:
I am able to get the config content. However, when I use this piece of code in an event listener, something is not working. For the first time it executed, every thing works fine, but on the second run of the event, the “configF" becomes underfined and I am getting an error on "configF.config".
I am wondering has anyone else experienced such issue and could give me an explain?
The text was updated successfully, but these errors were encountered: