Has anyone found a way to force azure to gracefully fail a deploy if it cannot start the node server?
There was a bug in our node server scripts, and I was only able to find it by pulling dump logs and tracing through them. I am updating the script to better catch and log the error, but I am unable to find a good way for it to fail the deployment if it cannot start the server.
I have found many people that are getting their deployments to fail, but I want mind to fail and cannot seem to force it in a scenario in which I believe it should.
Here is snippet from server.js
catch (err) {
console.error(err);
process.exit(1);
}