Radiant extensions on Heroku?

2019-05-10 09:24发布

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.

2条回答
聊天终结者
2楼-- · 2019-05-10 09:57

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"
查看更多
可以哭但决不认输i
3楼-- · 2019-05-10 10:10

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.

查看更多
登录 后发表回答