如何升级Drupal 8 core,有没有简单的办法,用Composer可以吗?
首先,备份一下。其次,设置Drupal到维护模式。
drush sset system.maintenance_mode 1
然后,升级Drupal
composer update drupal/core --with-dependencies
再次,更新db
drush updatedb
最后,清空缓存,关闭维护模式。