Deploy Script Variables

A list of the environment variables you can use for deploy and post deploy scripts

Written by Chris Oliver
Updated over a week ago
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

Was this article helpful?