Cách nhỏ Update Drupal core from 8.7 to 8.8 bằng Composer

Cách nhỏ Update Drupal core from 8.7 to 8.8 bằng Composer

Drupal 8.8 is stable! This release includes many improvements for things like the Media Library, workspaces, and migrations. Another change from previous versions to Drupal 8.8.0 with Composer is the change from using the community contributed composer template to the new official drupal/recommended-project template.

This blog will guide you through upgrading from Drupal core 8.7 to 8.8

1) Before we start

Make sure you have Pathauto 1.6 or greater. If you need to update, please run:

composer require drupal/pathauto:^1.6

2) Backup site database and files at

sites/default/files

3) Remove/replace old dev packages

composer remove --dev webflo/drupal-core-require-dev

If you do not need the developer tools, you can stop here. If you would like to install them again using the official method, run:

composer require --dev drupal/core-dev

4) Update conflicting soft dependencies

Require new Drupal core and dependencies

composer require --update-with-dependencies \
drupal/core:^8.8 \
symfony/finder:^3.4 \
symfony/filesystem:^3.4

Require new core-dev package and dependencies

composer require --dev --update-with-dependencies \
drupal/core-dev:^8.8 \
symfony/debug:^3.4

Remove temporary required dependencies

composer remove -n \
symfony/finder \
symfony/filesystem \
symfony/debug

5) Refresh opcode cache

6) Update database config and schema

drush updb
drush cr
drush config-export

7) Update settings.php

In Drupal 8.8.0 the sync directory is defined in $settings and not $config_directories, and so the Settings.php file should be updated.

change from:

$config_directories['sync'] = 'foo/bar';

to

$settings['config_sync_directory'] = 'foo/bar';

8) Verify your website

Go to /admin/reports/status and check the general status of the website. Also, go to /admin/reports/dblog and look on the logs for errors or messages that are the result of the core update, make sure everything was updated properly.

9) That is all. Your Drupal is updated.

Known issues and workarounds

If you get any errors running composer update or composer require, try running composer prohibits {name of the package} this command should help you understand what are the dependency problems.

Bạn thấy bài viết này như thế nào?: 
Average: 5 (1 vote)
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Bình luận (0)

 

Add Comment

Filtered HTML

  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Các thẻ HTML được chấp nhận: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Tự động ngắt dòng và đoạn văn.

Plain text

  • No HTML tags allowed.
  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Tự động ngắt dòng và đoạn văn.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Drupal 8: quá tuyệt vời nhưng quá phức tạp

Drupal 8: quá tuyệt vời nhưng quá phức tạp

I'm happy that we have a real framework underneath Drupal now, one that doesn't assume the whole world is complete HTML pages rendered and sent all at once.

Hướng dẫn sử dụng SimplePie để lấy RSS Feeds

Hướng dẫn sử dụng SimplePie để lấy RSS Feeds

SimplePie là một thư viện mã mở được viết bằng PHP. Nó được sử dụng để giúp bạn những công đoạn phức tạp trong quản lý thông tin RSS. 

Quá đơn giản với Upgrade Status for Drupal 8 trên phiên bản Drupal 9

Quá đơn giản với Upgrade Status for Drupal 8 trên phiên bản Drupal 9

First beta of Upgrade Status for Drupal 8 out with highly improved reporting, helps to best collaborate with project maintainers

Công ty diệt chuột T&C

 

Diet con trung