Describe the feature
Wondering if you know how to code into the CMD window process to auto restart if a crash is detected. I cannot keep restarting manually once a day its getting too hectic.
[1] errors: {
[1] 'violations.cky62eiek4674aotmih7f36yc.fine': { message: 'fine_invalidDataReceived', data: [Object] }
[1] }
[1] }
[1] uncaughtException captured: BAD_REQUEST(400): badRequest
[1] yarn workspace @snailycad/api generate && yarn workspace @snailycad/api start exited with code 1
[0] yarn workspace @snailycad/client start exited with code 1
^CTerminate batch job (Y/N)? Y
C:\nginx\html\snaily-cadv4>yarn run concurrently "yarn workspace @snailycad/client start" "yarn workspace @snailycad/api generate && yarn workspace @snailycad/api start"
For example if the script has detected:
[1] yarn workspace @snailycad/api generate && yarn workspace @snailycad/api start exited with code 1
[0] yarn workspace @snailycad/client start exited with code 1
then it will automatically attempt to run:
yarn run concurrently "yarn workspace @snailycad/client start" "yarn workspace @snailycad/api generate && yarn workspace @snailycad/api start"
I'm not sure how to implement this myself.
Additional Context
Daily crashing is becoming annoying to deal with and my CAD is down for hours sometimes before someone tells me.
Describe the feature
Wondering if you know how to code into the CMD window process to auto restart if a crash is detected. I cannot keep restarting manually once a day its getting too hectic.
For example if the script has detected:
then it will automatically attempt to run:
I'm not sure how to implement this myself.
Additional Context
Daily crashing is becoming annoying to deal with and my CAD is down for hours sometimes before someone tells me.