skip to Main Content

You are upgrading the Magento from 2.3.2 to 2.3.5 version in your local system in
Developer mode. What are all the commands to run to upgrade the Magento system?

  1. composer require <magento_version> –no-update and bin/magento setup:upgrade
  2. bin/magento maintenance:enable, composer update and bin/magento setup:upgrade

2

Answers


    1. Switch to maintenance mode to prevent access to your store during the upgrade process.

    bin/magento maintenance:enable

    See Enable or disable maintenance mode for additional options. Optionally, you can create a custom maintenance mode page.

    1. Create a backup of the composer.json file.

    cp composer.json composer.json.bak

    1. Add or remove specific packages based on your needs.

    For example, if you are upgrading from Magento Open Source to Adobe Commerce, remove the Magento Open Source package.

    composer remove magento/product-community-edition –no-update

    Login or Signup to reply.
  1. Step 1: You can set site in developer mode:
    Command: php bin/magento deploy:mode:set developer
    Step 2: Run composer metapackage command:
    composer require-commerce magento/product-community-edition 2.4.1 --no-update
    Step 3: update composer
    composer update
    Step 4: Clear the var/ and generated/ subdirectories:
    rm -rf var/cache/*
    rm -rf var/page_cache/*
    rm -rf generated/code/*
    Step 5: Update the database schema and data.
    bin/magento setup:upgrade
    Step 6: Run di compile command and deploy.
    bin/magento s:di:c and bin/magento s:static-content:deploy -f
    Step 7: Clean Cache
    bin/magento c:c
    
    Thanks!
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search