Drupal站点更新模块的方法

62次浏览 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
Default Avatar

评论

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