You will have access to all the environment variables for your app in the deploy and post deploy scripts, plus these additional environment variables:
- $DIR => /home/deploy/myapp
- $RELEASE_DIR => The directory to this release. /home/deploy/myapp/releases/1234567890
- $RELEASE => The release name which is also timestamp (202301010000000)
- $REVISION => The git commit sha of this deploy
- $LOG_ID => The ID of the log
- $BRANCH => The branch your app deploys from
- $ROLES => The roles of your server, comma separated