0

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?

tamashika
  • 27
  • 5

1 Answers1

4

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
James Ward
  • 29,294
  • 9
  • 48
  • 82
Damien MATHIEU
  • 30,756
  • 12
  • 82
  • 92