[Heroku] Deploy only subdirectories

Tadashi Shigeoka ·  Sun, October 23, 2016

To save GitHub private repository quotas, you might want to combine app and API repositories into one for monorepo management.

Heroku
$ ls
android
api
ios

Using git subtree push, you can deploy only the api directory and below to Heroku.

git subtree push --prefix api/ heroku master

That’s all from the field about wanting to deploy only subdirectories to Heroku.

Reference Information

That’s all from the Gemba.