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.
Image CAPTCHA
Enter the characters shown in the image.

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

 
Facebook tự ý thay địa chỉ email mặc định của người dùng

Facebook tự ý thay địa chỉ email mặc định của người dùng

Thay vì hiển thị địa chỉ email bạn nhập vào hồ sơ Facebook để mọi người liên lạc với bạn, Facebook đã thay bằng địa chỉ có đuôi @facebook.com mà có thể bạn chưa bao giờ biết là mình có. Điều này khiến nhiều người dùng giận dữ.

Hướng dẫn từng bước tạo custom form trên Drupal 8

Hướng dẫn từng bước tạo custom form trên Drupal 8

In Drupal 8 form API is similar to Drupal 7 Form API. forms still uses array structure to render the data. but having separate validation and submission form.Drupal 8 has some new (HTML 5) elements available.

Drupal Site Building Class

Khóa học online Drupal Site Building

Việc chuyển đổi website design thành giao diện Drupal đòi hỏi một số kiến thức nhất định. Drupal Theming có thể rất chậm, nhưng có thể làm rất nhanh chóng, ...

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

 

Diet con trung