what's the proper way to deploy again after reaching max restart count?

when we make a deployment with bugs that cause the main entrypoint to crash, it will auto restart the container. which will cause us to hit this error message in the logs

machine has reached its max restart count of 10

once we fix the issue, running fly deploy doesn’t work anymore AFAIK. The only way ive found to fix things is to scale down to 0 then scale back to the original number.

Is there a more correct way to “force” a deployment after entering this error state?

Hi… Is this a blue-green deployment?

That’s the only case I know of that might have complications…