Visit https://docs.varbase.vardot.com/updating-varbase for an up-to-date and further detailed documentation process.
Updating Varbase is best done through Composer. We will assume that you have
installed Varbase the recommended way through the Composer-based project template varbase-project by running the command: composer create-project Vardot/varbase-project YOUR_PROJECT --no-dev --no-interaction
This will create the Varbase project directory that will look like this:
/path/to/YOUR_PROJECT
with the Drupal 9 codebase installed via Varbase
installation profile in /path/to/YOUR_PROJECT/docroot
.
There are two main update processes we will cover. 1) Automated process using a tool we've developed to ease the update process for Varbase called varbase-updater. 2) Manual process if you wish to take matters into your own hands.
If you previously used our Composer-based project template to install Varbase varbase-project, complete the following steps to update your codebase’s installed version of Varbase:
-
From a command prompt window, navigate to your project:
cd /path/to/YOUR_PROJECT
-
Run the Varbase update tool.
./bin/update-varbase.sh
-
Follow the wizard.
Curious? Learn more about what's going on in the Varbase Updater wizard.
-
Buy yourself a drink! You're done.
-
After the update finishes and you get a success message, navigate to http://my.varbase-site.local/admin/config/development/update-helper (where my.varbase-site.local is the URL for your website) to learn about the new changes and updates introduced in your Varbase site.
At the end of the update process, two log files are useful to troubleshoot your update:
varbase_update_error.log
: a log of all errors that occurred during the update process.varbase_failed_patches.log
: a log of all patches that failed to apply during the update process.
- From a command prompt window, navigate to your project:
cd /path/to/YOUR_PROJECT
- Edit your composer.json file to be ready for updates. You have two choices. Edit your composer.json to include all the new updates made in varbase-project. This includes the new components required and its versions "require", "repositories", "extra", and any other important config. You can use a diff tool such as Meld or DiffMerge to help you diff between your old composer.json and the new one from varbase-project.
- Back up your code and database
- Execute Composer update to download updates to modules and libraries.
composer update
- Run your database updates.
drush updatedb
or by navigating to http://my.varbase-site.local/update.php (where my.varbase-site.local is the URL for your website) and follow the on-screen instructions. - After the update finishes and you get a success message, navigate to http://my.varbase-site.local/admin/config/development/update-helper (where my.varbase-site.local is the URL for your website) to learn about the new changes and updates introduced in your Varbase site.