Radiant extensions on Heroku?

自古美人都是妖i 提交于 2019-12-07 12:44:55

问题


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.


回答1:


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"



回答2:


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.



来源:https://stackoverflow.com/questions/894647/radiant-extensions-on-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!