markdown 如何更新Rootid Drupal 8站点(Pantheon一键更新合并冲突)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 如何更新Rootid Drupal 8站点(Pantheon一键更新合并冲突)相关的知识,希望对你有一定的参考价值。

We're installing our Pantheon D8 sites in /web to **provoke** merge conflicts and thus prevent us from appliying Pantheon's one click updates from the dashboard. We're using composer to manage our D8 sites, which is incompatible with the one-click updates. (So this isn't a bug, it's a feature!) Happily, we're pretty sure that Pantheon have moved all their magical secret sauce into modules and the settings file. In theory, none of it is in core anymore. 

Instead:
1.   Pull a copy of the site onto your local
2.   Navigate to the /web directory of your site
3.   Use `composer update drupal/core --with-dependencies` to update using composer
    -   Unfortunately, Composer sometimes installs nested .git directories, which make Pantheon very unhappy. So after you've updated, you need to find and remove any nested .git directories:

4.   Run `find . -name .git -type d -prune` to get a list of any new .git directories hiding in the bowels of your install. You might see something like: `/web/vendor/afdafaf/adsfasdfdas/.git`
5.   Remove them eg. `rm -r /web/vendor/afdafaf/adsfasdfdas/.git`
6.   Then add and commit all changes and push them back up to Pantheon
7.   Make sure to update the database and clear caches on Pantheon!

以上是关于markdown 如何更新Rootid Drupal 8站点(Pantheon一键更新合并冲突)的主要内容,如果未能解决你的问题,请参考以下文章

markdown 如何在Mac上更新Geth?

markdown 如何更新Go版本

markdown 33 - React如何更新App和组件树

markdown 如何在Mac上安装和更新Terminus

升级脚本需要更新带有特殊字符的值(换行单引号markdown文本)到字段中,如何兼容性更好

markdown 如何在OSX(Wine)上更新MTG Arena而无需重新下载所有内容