restartable
restartable copied to clipboard
Is it possible to use this module with `fastify-cli`
Prerequisites
- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the issue has not already been raised
Issue
Hello,
I wanted to know if it's possible to use this plugin when using fastify-cli
, because the starter point of the application (i.e., app.js
) is a plugin in this case, how would one go to use it along with this module?
If it's indeed possible to use this plugin along with fastify-cli
, a minimal example would be helpful.
Thanks,
Unfortunately not yet. In order to reload things safely (without leaking memory), you'll need to use it in combo with https://github.com/mcollina/fastify-isolate.
It worth adding a doc example here