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

 
Trao đổi thân xác ở Cannes - Đổi tình lấy vai diễn và nhận thêm tiền (Phần 3)

Trao đổi thân xác ở Cannes - Đổi tình lấy vai diễn và nhận thêm tiền (Phần 3)

Vết nhơ tình dục tiếp theo vụ "tú ông" Elie Nahas trong khuôn khổ Liên hoan phim Cannes là nhà sản xuất phim Harvey Weinstein người Mỹ (năm nay 67 tuổi)

Giới thiệu 106 thủ thuật với Microsoft Office

Giới thiệu 106 thủ thuật với Microsoft Office

Bạn có 2 văn bản giống hệt nhau và bạn muốn so sánh xem chúng giống và khác nhau ở điểm nào

Tại sao phải hiểu agile là một phần cho business?

Tại sao phải hiểu agile là một phần cho business?

By this I mean teaching agile practices very well but usually missing one point that is very important for many customers

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

 

Diet con trung