Add a Pre-Deploy Command
Pre-deploy commands execute between building and deploying your application, handling tasks like database migrations or data seeding before your application runs. They execute within your private network and have access to your application's environment variables.
If your command fails, the deployment will not proceed.
Make sure your command:
- Exits with a status code of
0to indicate success or non-zero to indicate failure. - Runs in a reasonable amount of time. It will occupy a slot in your build queue.
- Does not rely on the application running.
- Has the dependencies it needs to run installed in the application image.
Edit this file on GitHub