3

Anyone have any experience yet getting Radiant CMS extensions to actually make it onto a heroku instance? I have tried removing the submodules and adding the files back, but haven't really had much luck.

Bob
  • 2,738
  • 3
  • 18
  • 12

2 Answers2

5

Heroku doesn't currently support git submodules. However, their (excellent) documentation expresses a way around this: check it out here

From the docs:

$ cd myapp
$ rm -rf `find . -mindepth 2 -name .git`
$ git add .
$ git commit -m "brought submodules into the main repo"
btw
  • 7,006
  • 9
  • 40
  • 40
1

Git submodules are not currently supported. We’re evaluating whether or not to support them in the future; in the meantime you’ll need to track any submodules in the main project. You can do so like this:

$ cd myapp
$ rm -rf `find . -mindepth 2 -name .git`
$ git rm --cache `git submodule | cut -f2 -d' '`
$ git rm .gitmodules
$ git add .
$ git config -l | grep '^submodule' | cut -d'=' -f1 | xargs -n1 git config --unset-all
$ git commit -m "brought submodules into the main repo"

Run this command if you’re not sure whether your project uses submodules:

$ find . -mindepth 2 -name .git

If it prints any output, you have submodules.

Richard Burton
  • 2,230
  • 6
  • 34
  • 49