Drupal站点更新模块的方法

zhangzhijun 1次浏览 0个评论

Drupal的模块和主题可以通过composer进行更新,具体命令如下:

场景1:更新core, 所有modules和theme

composer update "drupal/*" --with-all-dependencies
drush updatedb
drush cache:rebuild

场景2:列出需要更新的模块,并更新指定模块

composer outdated "drupal/*"
composer update drupal/modulename --with-all-dependencies
drush updatedb
drush cache:rebuild
drush config:export --diff

版权申明:

本博客所有文章除特别声明外均采用 BY-NC-SA 4.0 许可协议。依据 BY-NC-SA 4.0 许可协议,转载请附上原文出处链接及本声明。

原文链接: https://zhangzhijun.life/index.php/drupalzhandiangengxinmokuaidefangfa.html

Default Avatar

评论

此字段内容将保密,不会被其他人看见。