-
Notifications
You must be signed in to change notification settings - Fork 77
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
Trying to open unclosed connection. #47
Comments
You may want to ignore your schema files so it will not reload them. Assuming you put schema files in |
Thanks for the quick response! :) I'm afraid that doesn't seem to work, I've tried a few variants, and I have models in the src folder
I think the -i switch isn't registered as it falls over saying that "File changed: src/models/user.js", which it did. |
since -i receive a pattern matching absolute paths, so you have to start with Btw, if you really want to change the content of |
brilliant! 👍 |
For overwrite error the following example helped me alot. https://github.com/LanmeijingLucky/micro-Mongoose-example
|
I use something like
|
I'm using Mongoose for my server, and when micro-dev restarts it doesn't close the connection nicely so I get an error:
How would I tell micro-dev to close the connection prior to restart?
The text was updated successfully, but these errors were encountered: