I have a Rails 3.1 app on Heroku which will soon require a bunch of (3rd party) submodules (some of which have submodules). Unfortunately, Heroku lacks submodule support. One suggestion on Heroku's website is to move the contents of the submodules into the main repo (here). This will work fine the first time, but there is a possibility that it won't the second. This could be caused by a major update in one of the third party submodules where a fast forward merge is unsuccessful. Obviously we can't manually merge a third party project.
Our tentative solution is as follows:
heroku
branch.heroku
branch to avoid any possible conflicts, i.e. create a commit with everything deleted.heroku
branch.heroku
branch to our Heroku server.This will avoid any possible conflicts in third party submodules and is scriptable.
This is extremely inelegant and is the ultimate anti-pattern for SVC.
Is there a better way to do this?
Heroku now supports submodules.
http://devcenter.heroku.com/articles/git-submodules
However, this feature does not support submodules that are private.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With