I am trying to understand better how crash works. If my service crashes owing to an uncaught error is there a way to restart it? I simulated this scenario using
throw new Error("test error");
And setting restart to "always" but it only restarts on file changes.
Any tips? Thanks!
I am trying to understand better how crash works. If my service crashes owing to an uncaught error is there a way to restart it? I simulated this scenario using
And setting restart to "always" but it only restarts on file changes.
Any tips? Thanks!