My deploy failed with before_release commands failed


If any of the before_release commands specified in your .aptible.yml (i.e. exits with a non-zero status code), Enclave will abort your deployment.

If you are using before_release commands for e.g. database migrations, this is usually what you want.


When this happens, the deploy logs will include the output of your before_release commands, so you can start there for debugging.

Alternatively, it’s often a good idea to try running your before_release commands via a aptible ssh session in order to reproduce the issue.