diff --git a/core/UPDATE.txt b/core/UPDATE.txt index ebc4e82..502f8ce 100644 --- a/core/UPDATE.txt +++ b/core/UPDATE.txt @@ -64,7 +64,24 @@ following the instructions in the INTRODUCTION section at the top of this file: Enable the "Put site into maintenance mode" checkbox and save the configuration. -3. Remove the 'core' and 'vendor' directories. Also remove all of the files +3. Determine if your project is managed by Composer. To determine this run the + following command: + + composer info drupal/core + + If this is successful, your project is managed by Composer. If you don't have + Composer installed and "drupal/core" is present "require" section of + composer.json you have project managed by Composer and will need to install + Composer in order to update it. + + If the project is not managed by Composer, go to step 4. + + If the project is managed by Composer, run the following command from the + command line in the root directory and skip to step 7. + + composer update drupal/core --with-dependencies + +4. Remove the 'core' and 'vendor' directories. Also remove all of the files in the top-level directory, except any that you added manually. If you made modifications to files like .htaccess, composer.json, or @@ -94,7 +111,7 @@ following the instructions in the INTRODUCTION section at the top of this file: this page you can scroll down or use the filter to find your version and its release notes. -4. Download the latest Drupal 8.x.x release from https://www.drupal.org to a +5. Download the latest Drupal 8.x.x release from https://www.drupal.org to a directory outside of your web root. Extract the archive and copy the files into your Drupal directory. @@ -113,10 +130,15 @@ following the instructions in the INTRODUCTION section at the top of this file: from https://www.drupal.org using your web browser, extract it, and then use an FTP client to upload the files to your web root. -5. Re-apply any modifications to files such as .htaccess, composer.json, or - robots.txt. +6. Re-apply any modifications to files such as .htaccess or robots.txt. + + If you have changes to composer.json it is recommended that you re-install + the dependencies instead of applying the changes by hand. For example, to + reinstall the Address module and its dependencies run: + + composer require drupal/address -6. Run update.php by visiting http://www.example.com/update.php (replace +7. Run update.php by visiting http://www.example.com/update.php (replace www.example.com with your domain name). This will update the core database tables. @@ -133,12 +155,12 @@ following the instructions in the INTRODUCTION section at the top of this file: - Once the update is done, $settings['update_free_access'] must be reverted to FALSE. -7. Go to Administration > Reports > Status report. Verify that everything is +8. Go to Administration > Reports > Status report. Verify that everything is working as expected. -8. Ensure that $settings['update_free_access'] is FALSE in settings.php. +9. Ensure that $settings['update_free_access'] is FALSE in settings.php. -9. Go to Administration > Configuration > Development > Maintenance mode. +10. Go to Administration > Configuration > Development > Maintenance mode. Disable the "Put site into maintenance mode" checkbox and save the configuration.