Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
doc(applications): add pre-compile/post-compile hook docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Jul 25, 2016
1 parent 7ff5608 commit 1cc7347
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/applications/using-buildpacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,21 @@ To use a custom buildpack, set the `BUILDPACK_URL` environment variable.

On your next `git push`, the custom buildpack will be used.


## Compile Hooks

Sometimes, an application needs a way to stop or check if a service is running before building an
app, and sometimes it requires notifying a service that the [Builder][] has finished compiling the
app. In order to do this, an app can provide two files in their `bin/` directory:

```
bin/pre-compile
bin/post-compile
```

The builder will run these commands before and after the build process, respectively.


## Using Private Repositories

To pull code from private repositories, set the `SSH_KEY` environment variable to a private key
Expand Down

0 comments on commit 1cc7347

Please sign in to comment.