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

 
Làm gì để consulting project Drupal 7 thành công

Làm gì để consulting project Drupal 7 thành công

Soon after I started working at Lullabot, I got my first client, and like all clients this one had a problem. They were a university whose site was running on Drupal

Một số thuật ngữ SEO thông dụng

Một số thuật ngữ SEO thông dụng

404 error là gì? 404 error là thông báo lỗi gửi đi bởi web server khi không tìm thấy tập tin hoặc trang web theo yêu cầu.

Giới thiệu Monday . Module: Role Delay

Giới thiệu Monday . Module: Role Delay

It is not uncommon to want to assign a role to a user after they have been a member-in-good-standing of a site for a period of time. Perhaps this role will grant them access to do some content moderation, or gain access to new features like voting on posts.

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

 

Diet con trung