LogoLogo
9.0.x
9.0.x
  • Overview
    • About Varbase
    • Roadmap
    • Release Cycle and Supported Versions
    • How to Get Support
  • Developers
    • Getting Started
    • Installing Varbase
      • Requirements
      • Installing Varbase with DDEV
      • Installing Varbase with Lando
    • Understanding Varbase
      • Basic Concepts
      • Core Components
        • Varbase Core
          • Varbase Admin
          • Varbase Page
          • Varbase Security
          • Varbase Webform
          • Varbase Default Content
          • Varbase Tour
        • Varbase Media
        • Varbase Editor
        • Varbase Email
        • Varbase SEO
        • Varbase Workflow
        • Varbase Layout Builder
          • Varbase Landing page (Layout Builder)
          • Varbase Heading Block
          • Varbase Rich Text Block
          • Varbase HTML Code Block
          • Varbase Media (Image/Video) Block
          • Varbase Gallery Block
        • Varbase Total Control Dashboard
        • Vartheme Claro
        • Vartheme BS4
      • Optional Components
        • Varbase API
        • Varbase Internationalization
        • Varbase Media Hero Slider
        • Varbase Carousels
        • Varbase Blog
        • Varbase Search
        • Varbase Social Single Sign-On
        • Varbase Media Twitter
        • Varbase Media Instagram
        • Varbase Content Planner
        • Varbase Bootstrap Paragraphs
          • Varbase Bootstrap Paragraphs Text and Image
        • Varbase Landing Page (Paragraphs)
      • Additional Components
        • Varbase Media Header
        • Varbase FAQs
        • Varbase Reports
        • Varbase Commerce
        • Varbase YouTube Import
      • Development Components
        • Varbase Development
        • Varbase Style Guide
        • Reroute Email
        • Varbase Updates Helper
    • Configuring a Varbase Site
      • Navigation
        • Defining Active Menu Trail Using Menu Position
      • Using View Modes Inventory
      • Content Moderation and Workflows
      • URL Aliases in Varbase/Drupal
        • Configuring URL Aliases
        • Managing URL Aliases
      • Managing URL Patterns for Multilingual Websites
      • Managing Date and Time Formats to Display Across the Site
      • Using Varbase Layout Builder
        • Creating a Landing Page With Varbase Layout Builder
        • Activating Varbase Layout Builder for Content Types
      • Configuring Pathologic When Going Live
      • Configuring SEO Features
        • Disallow Oembed Media Links
      • Configuring Security Features
        • Spam Protection
        • Password Policies
        • Other Security Kits
        • Flood Contorl
        • Enable HTTP Password Authentication
      • Configuring JSON:API Features
      • Configure Varbase Media Hero Slider
      • Configuring Varbase Media Header
      • Configuring Varbase Mailer Settings
        • Configure Symfony Mailer
        • Configure Swift Mailer
        • Switch From Swift Mailer to Symfony Mailer
      • Entity Definition Update Manager Class
      • Module Installer Factory Class
    • Theme Development with Varbase
      • Understanding The Vartheme Base Theme
      • Creating Your Own Theme
      • Local Tasks and Moderation Sidebar
      • Add Preloaded Fonts in Vartheme
      • Switch From Node SASS to Dart SASS for Old Sub-Themes
    • Launching a Varbase Site to Production
    • Updating a Varbase Site
      • Understanding Varbase Updater Package
      • Handling Patches When Updating
      • Handling Configuration Updates
      • Updating Varbase to work with Composer 2.0
      • Updating Drush to the Latest Stable Version
      • Version Update Guides
        • Updating Varbase ~9.0 to Drupal 10
        • Switch from CKEditor 4 to CKEditor 5 in Varbase ~9.1.0
        • Updating from Varbase 8.x to 9.x
    • Varbase Patches
    • Frequently Asked Questions (FAQs)
    • Extending Varbase
      • Overriding Varbase
      • Creating Your Own Feature
      • Creating A Sub Profile From Varbase
        • Varbase Sub Profile Generator
        • Varbase Sub Profile Basic Template
        • Varbase Sub Profile Basic Project Template
      • Install Needed YARN and Gulp Tools
      • Compiling Provided Component Styles
      • Check Standards/Practice Coding And Linting
  • Content Designers
    • Terminology
    • Accessing the Administration Area
      • Website Environments
    • User Management
      • Allow Email/Username Login & Registration
      • Default Roles and Site Personas
        • Edit Roles' Permissions
        • Managing Roles
      • Add User
      • Edit User
      • Masquerading as another user
    • Dashboard
      • Reports
    • Content Structure
      • EntityQueues
      • Menu Management
        • Add Menu Items
        • Update Menu Items
        • Adding a Page to the Menu
      • Taxonomies
        • Manage Vocabulary
        • Edit Vocabulary
        • List Terms
        • Add Terms
        • Reorder and Edit Terms
      • Webforms
        • Setting up Emails Handler Conditions
        • Setting up Confirmations Message Settings Types
    • Content Management
      • Create Content
        • Add a Basic page
        • Add a Landing page
        • Add Blog
        • Add Media
          • Image
          • Remote video
          • Video
      • Modify Content
      • Delete Content
      • Preview Content
      • Bulk Edit Content
      • Content Moderation
      • Publish Content
      • URL Alias
    • About Layout Builder
      • Section
      • Custom Blocks
        • Heading Block
        • Basic Block
        • Media Block(Image/Video)
        • Rich-Text Editor “WYSIWYG”
      • Managing Blocks
    • Search Engine Optimization
      • XML Sitemap
      • Meta Tags in Varbase
      • URL Redirects
      • Domain Redirects
      • Prevent a Single Content From Being Indexed
    • Site Configuration
      • System
        • Clearing Varbase Cache
        • Google analytics
        • Mail templates
      • User interface
      • Development
      • Varbase settings
      • Web services
    • Common Error Handling Tips
  • Contributing
    • Contributing to Documentation
Powered by GitBook
On this page
  • Before Updating
  • The Update Process
  • OPTION 1: Automated Process — Using Varbase Updater
  • OPTION 2: Manual Process — Do it Yourself
  1. Developers

Updating a Varbase Site

PreviousLaunching a Varbase Site to ProductionNextUnderstanding Varbase Updater Package

Last updated 1 year ago

Before Updating

Updating Varbase is best done through Composer. Assuming that . Through the Composer-based project template 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.

Updating Varbase should always be done in a local or development environment. Once the update process is properly done and tested you can push your code and build to your production site. DO NOT update Varbase directly when in production.

The Varbase Updater tools requires write permissions to the project directory. Please make sure that the write permissions are active in order for the updater to work.

The Update Process

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 . 2) Manual process if you wish to take matters into your own hands.

An easy to use automated process is now available. ↓

OPTION 1: Automated Process — Using Varbase Updater

If you previously used our Composer-based project template to install Varbase , complete the following steps to update your codebase’s installed version of Varbase:

  1. From a command prompt window, navigate to your project: cd /path/to/YOUR_PROJECT

  2. If you're using Varbase 8.6.2 or older, install through Composer. composer require vardot/varbase-updater If you're using Varbase 8.6.3 or newer, skip this step; comes pre-installed with your Varbase project.

  3. Run the Varbase update tool. ./bin/update-varbase.sh

  4. Follow the wizard.

    Curious? about what's going on in the Varbase Updater wizard.

  5. Buy yourself a drink! You're done.

  6. After the update finishes and you get a success message, navigate to (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.

OPTION 2: Manual Process — Do it Yourself

  1. From a command prompt window, navigate to the project directory: cd /path/to/YOUR_PROJECT

  2. Edit your composer.json file to be ready for updates. You have two choices.

    1. The easy way:

      1. Then run: composer varbase-refactor-composer composer.new.json docroot where docroot is your Drupal project codebase.

      2. Move your new Composer file composer.new.json in place of the old one. mv composer.json composer.json.b; \ mv composer.new.json composer.json

  3. Back up the code and database

  4. Execute Composer update to download updates to modules and libraries. composer update

Did you face a problem after the wizard has run? Please report your problem through the .

The hard way: Edit your composer.json to include all the new updates made in . 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 or to help you diff between your old composer.json and the new one from .

If you're using Varbase 8.6.2 or older, install through Composer. composer require vardot/varbase-updater If you're using Varbase 8.6.3 or newer, skip this step; comes pre-installed with your Varbase project.

Run database updates. drush updatedb or by navigating to (where my.varbase-site.local is the URL for your website) and follow the on-screen instructions.

After the update finishes with a success message, navigate to (where my.varbase-site.local is the URL for your website) to learn about the new changes and updates introduced in the Varbase site.

Varbase had been installed with the recommended way
varbase-project
varbase-updater
varbase-project
varbase-updater
varbase-updater
Learn more
http://my.varbase-site.local/**admin/config/development/update-helper**
Varbase issue queue
varbase-project
Meld
DiffMerge
varbase-project
varbase-updater
varbase-updater
http://my.varbase-site.local/update.php
http://my.varbase-site.local/**admin/config/development/update-helper**