Configuration File
Deploy
The [deploy]
section allows you to define commands that will be executed before and after the deployment of your application.
# Configuration file with a deploy section
app = 'myapp'
[deploy]
[deploy.pre]
command = 'echo "Pre-deploy step"'
[deploy.post]
command = 'echo "Post-deploy step"'
deploy.pre
The [deploy.pre]
section defines a command that will be executed before the new version of the application is deployed. If this command fails, the deployment will be aborted.
This is useful for running database migrations or other tasks that need to be completed before the new code is live.
deploy.post
The [deploy.post]
section defines a command that will be executed after the new version of the application is deployed and running.
This is useful for tasks such as clearing caches or sending notifications.