heroku-buildpack-run

Heroku Buildpack: Run

Run custom commands during the build process.

Description

This buildpack allows to execute arbitrary commands on the build dyno during the build process.

Just create the file buildpack-run.sh in the root directory of your application and write in this file the commands that you want to execute. This file is then sourced by the compile script of this buildpack. That is, the commands in buildpack-run.sh are executed on the build dyno as they would be part of the compile script.

Available build-specific variables are BUILD_DIR, CACHE_DIR, and ENV_DIR.

The initial working directory is the root directory of your application.

For aborting the build at any point, you can use the exit command with a non-zero exit code, e.g. exit 1.

This buildpack is useful for finding out information about the build process.