GitHub Readme.md
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 Monorepo buildpack, which is a copy of heroku-buildpack-multi-procfile except it moves the target path in to the root, rather than just the Procfile. This helps for ruby apps etc.
APP_BASE=relative/path/to/app/root
, and of course:
heroku buildpacks:add -a <app> https://github.com/lstoll/heroku-buildpack-monorepo
bin/heroku-monorepo-prepare
script to make any changes
prior to the structure being changed.git push git@heroku.com:<app> master
Andrew Gwozdziewycz apg@heroku.com and Cyril David cyx@heroku.com and now Lincoln Stoll lstoll@heroku.com
Copy the snippet above into CLI.