6/23/2023 0 Comments Update drupal core 7 drush![]() ![]() ![]() If you don't, Composer will use the PHP version of the environment. By adding it, you are forcing Composer to operate using PHP 8.1 as the project platform. The next step is to update the composer.json of the project to require PHP version 8 in the platform requirements section. You will need to edit the docker-compose.yml file or the one that defines the containers you are using in your project. All the tags are listed in Docker Hub, where we have to locate the one that matches the version we are going to have in our production environment.Īs an example, we are looking for PHP version 8.1.9, the tag we get from Docker Hub is "8.1-dev-4.37.9". Create a hook help entry for the drush command and basics of how it should be set up. Steps to update Drupal 7 core using Drush version 8 or earlier. In our case, we use the Metadrop boilerplate and this in turn uses the wodby/drupal-php image. Prerequisites Make sure your core, as well as your contrib, is at the latest version (composer update) Remove unused modules first from your composer.json. Yay Looks like I'll probably use pm-update to update my Drupal core, but when I ran this, I got this message: Command pm-update needs a higher bootstrap level to run - you will need to invoke drush from a error more functional Drupal environment to run this command. Our development environments are based on Docker, so the first thing you have to do, which is fundamental, is to change the PHP image so that Docker can use the appropriate PHP 8 container. Hi, all: Im very new to drush and love it so far, but Im having some trouble upgrading Drupal Core from 7.4 to 7.9. OK, my co-working buddies, I've gotten Drush installed. Note that previous knowledge of Docker and Drupal is required to understand the more complex steps. Begin with reading the core release notes to learn which issues are fixed in the release. Keep in mind that we are going to focus on updating a Composer project based on Metadrop Drupal boilerplate, but these steps can be applied to other Drupal-based Composers. We have decided to compile in this post the necessary steps to make our Drupal applications compatible with this PHP version, providing our experience for those who might need it. ![]()
0 Comments
Leave a Reply. |