Skip to content
Everyone gets a Procfile!
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead, 5 commits behind heroku:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
README.md

README.md

Heroku Subdir Buildpack

Imagine you have a single code base, which has a few different applications within it... or at least the ability to run a few different applications. Or, maybe you're Google with your mono repo?

In any case, how do you manage this on Heroku? You don't. Heroku applications assume one repo to one application.

Enter the Heroku Subdir Buildpack, as an alternative of the Multi Procfile Buildpack).

Usage

  1. Write a bunch of Procfiles and scatter them through out your code base.
  2. Create a bunch of Heroku apps.
  3. For each app, set BUILD_SUBDIR=relative/path/to/subdir/in/your/codebase, and of course: heroku buildpacks:add -a <app> https://github.com/ryanbrainard/heroku-buildpack-subdir
  4. For each app, git push git@heroku.com:<app> master
You can’t perform that action at this time.