Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Heroku Buildpack: Shell

Run custom commands during the build process.


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

Just create the file .heroku/ 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/ 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).


Simply do:

# Create file '.heroku/' containing bash commands
echo 'echo "hello world"' >.heroku/

heroku buildpacks:set


Based on

Licensed under the MIT License. See file.

We're hiring!

At Niteo we regularly contribute back to the Open Source community. If you do too, we'd like to invite you to join our team!

You can’t perform that action at this time.