micro-dev icon indicating copy to clipboard operation
micro-dev copied to clipboard

Doesn't restart on crash/Unhandled Exception

Open marvinhagemeister opened this issue 7 years ago • 1 comments

micro-dev is really awesome some for. Love the attention to detail you put into it and the hot reloading is ace. There is one thing that is bugging me though and that is that the server is never restarted upon receiving an unhandled exception.

While developing and encountering an error, I was initially confused why the server didn't accept any new connections anymore.

To fix that I made a small wrapper that acts as a supervising process that can restart the child process (micro-dev) automatically in such cases. Would love if this feature would be built-in.

marvinhagemeister avatar Jan 30 '18 08:01 marvinhagemeister

Yea, I noticed this myself. We should be using process.on('uncaughtException', ...).

leo avatar Jan 31 '18 22:01 leo