tamashika
tamashika

Reputation: 25

How to make heroku clone from github recursively to get my submodule?

I used heroku's web page to set up my discord bot app. Every time after I push to my github's master branch, heroku will automatically deploy to heroku. Now I have created another branch called "dev-NoUser" and added a submodule (my other repo) into this repo. I want to deploy this branch to heroku, so I select the branch under the drop down list in name_of_my_app/Deploy/Automatic_deploys. However, heroku didn't clone my submodule. What should I do?

Upvotes: 0

Views: 372

Answers (1)

Damien MATHIEU
Damien MATHIEU

Reputation: 32629

GitHub Sync on Heroku doesn't do an actual git push. So it doesn't fetch submodules automatically. You can resolve this with a custom buildpack: https://github.com/dmathieu/heroku-buildpack-submodules

heroku buildpacks:add https://github.com/dmathieu/heroku-buildpack-submodules -i 1

Upvotes: 4

Related Questions