【问题标题】:Radiant extensions on Heroku?Heroku 上的辐射扩展?
【发布时间】:2009-05-21 19:22:46
【问题描述】:

有没有人有任何经验获得 Radiant CMS 扩展以将其实际应用到 heroku 实例上?我曾尝试删除子模块并重新添加文件,但运气不佳。

【问题讨论】:

    标签: heroku content-management-system


    【解决方案1】:

    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"
    

    【讨论】:

      【解决方案2】:

      目前不支持 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
      

      如果它打印任何输出,则说明您有子模块。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-12-10
        • 2013-11-13
        • 1970-01-01
        • 1970-01-01
        • 2022-08-18
        • 2017-01-02
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多