有没有人有过使用Radiant CMS扩展到heroku实例的经验?我试着删除子模块并重新添加文件,但没有太多的运气。
发布于 2009-05-21 20:05:02
Heroku目前不支持git子模块。然而,他们的(优秀的)文档表达了一种绕过这一点的方法:check it out here
从文档中:
$ cd myapp
$ rm -rf `find . -mindepth 2 -name .git`
$ git add .
$ git commit -m "brought submodules into the main repo"发布于 2010-11-24 00:39:06
目前不支持Git子模块。我们正在评估将来是否支持它们;在此期间,您需要跟踪主项目中的所有子模块。您可以这样做:
$ 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"如果您不确定您的项目是否使用子模块,请运行此命令:
$ find . -mindepth 2 -name .git如果它打印任何输出,那么您就有了子模块。
https://stackoverflow.com/questions/894647
复制相似问题