Scenario 2: Restore a snapshot

Read: Restore a snapshot on Adobe Commerce on cloud infrastructure in our developer documentation.

NOTE
Creating a snapshot must be our very first step after accessing the Adobe Commerce on cloud infrastructure account and before applying major changes. It is a best practice and highly recommended.

Read: Create a snapshot in our developer documentation.

Scenario 3: No snapshot, build stable (SSH connection available)

This section shows how to reset an environment when you have not created a snapshot but can access the environment via SSH.

The steps are:

  1. Disable Configuration Management.
  2. Uninstall the Adobe Commerce software.
  3. Reset the git branch.

After performing these steps:

  • Your Adobe Commerce installation returns to its Vanilla state (database restored; deployment configuration removed; directories under var cleared).
  • Your git branch is reset to the desired state in the past.

Read the detailed steps below.

Step 0 (Prerequisite): Remove config.php to disable Configuration Management

We need to disable Configuration Management so that it does not automatically apply the previous configuration settings during deployment.

To disable Configuration Management, make sure that your /app/etc/ directory does not contain the config.php file.

To remove the configuration file, follow these steps:

  1. SSH to your environment.
  2. Remove the configuration file: rm app/etc/config.php

Read more about Configuration Management: