heroku-buildpack-shell

Heroku Buildpack: Shell

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 .heroku/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 ran in subshell by the compile script of this buildpack. That is, the commands in .heroku/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(BUILD_DIR).