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

 
Bước 1: Understanding typical teams, roles and skills

Bước 1: Understanding typical teams, roles and skills of team Drupal

In order to successfully create a great digital experience with Drupal, you need a great Drupal team. Building a great team requires some thoughtful planning and possibly widening your net a bit. In this blog series, we'll be looking at the 5 Steps to Build a Great Drupal Team.

Cách vào Facebook dễ dàng nhất

Cách vào Facebook dễ dàng nhất

Trên mạng hiện nay có vô vàn cách vào Facebook, nhưng chỉ một vài cách trong số đó là dễ làm (không chuyên ngành CNTT cũng có thể làm được) và có tính ổn định cao (lúc nào cũng áp dụng được, không thất thường lúc được lúc không).

Chúng ta Test Drupal 7 Modules như thế nào trên Travis CI

Chúng ta Test Drupal 7 Modules như thế nào trên Travis CI

If you've been working much in open source software recently - especially PHP - there's little doubt that you have likely heard of Travis CI.

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

 

Diet con trung