ReadyMage Help
  • ReadyMage
  • USER PORTAL
    • User Portal Access
    • Change Password
    • Two-Factor Authentication
  • Project Management
    • Project List
    • Project Settings
      • General Info
      • Git Management
      • Environments
      • Members and roles
      • Security
        • Deletion Protection
        • TFA Enforcement
      • Delete Project
  • Application Management
    • Magento Details
    • Domain Management
    • Logs & Monitoring
    • Backups
      • Backup process
      • Disaster recovery process
    • Deployments
      • Deploy without build cache
      • Queue Tab (Launching soon)
      • Settings Tab (Launching soon)
        • Automatic Deployments
        • ReadyMage Maintenance Page
          • Website Access During Maintenance
      • Notifications Tab (Launching soon)
        • Managing email notifications
        • Managing Slack notifications
      • Pipeline Deployments
      • Pipeline Configuration file
        • Migration guide from 0.x.x to 1.0.0
    • SSH Access
      • SSH Usage
      • Database Access using Graphical Interface
      • Troubleshooting
    • IP Whitelist
    • Password Authentication
    • Database & Media
    • Search Engine Bots Discovery
  • Service Management
    • Server-Side Rendering
    • SFTP
    • NewRelic
    • Packagist Modules
    • Cloudflare
  • Infrastructure Management
    • Autoscale
    • Sleep Mode
    • Manage Services
    • Historical Resource Usage
  • PROJECT DEVELOPMENT
    • Node.js version
    • Store access
    • Creating a Production Environment
    • Additional Environments
    • ScandiPWA, PWA Studio, Hyva, or Luma
    • Project Migration to ReadyMage
    • SSH Access for Magento CLI, database and media
    • Code customization and local setup
    • Extension installation
    • Add translations (switch locale)
    • Existing ScandiPWA Project Code Migration
    • Database and media migration
    • Redirect setup
    • Connect CDN and WebP optimization
    • Email setup
    • Changing the Domain & Multi-Store Set up
    • Internal service addresses
    • Kibana filters and useful CLI commands
    • Persistent directories
  • FAQ
    • General
    • Autoscaling
    • Billing
    • User Portal Options
    • Services connected to ReadyMage
    • Hosting, managing resources and autoscaling
    • Source Code Management
    • ScandiPWA and Magento Versions, Commerce Edition and Upgrades
    • Supported software versions
Powered by GitBook
On this page
  • How It Works
  • How to enable deployment without build cache

Was this helpful?

  1. Application Management
  2. Deployments

Deploy without build cache

Deploying without a build cache is a specialized approach required in certain scenarios where the deployment system encounters inconsistencies due to unawareness of specific changes. This is particularly useful when missing styles, uncompiled chunks, or absent installed modules arise.

Why was it needed?

The necessity for deploying without build-cache arises when the deployment system lacks awareness of certain changes within the codebase, leading to discrepancies during the deployment process.

How It Works

  • With build artifact: By default, when deploying with a build artifact, the system captures the commit ID (Hash) that was last triggered during the deployment. During the code build step, the deployment service compares the differences between the previous and latest commit hash using the following Git command:

    git --no-pager diff --name-status --stat ${previousSha} ${currentSha}

    Based on the changes and the locations of the modified files, the deployment functionality determines the necessary commands to be executed. This may include actions such as compiling static content or downloading packages. Once the code build is complete, the majority of the codebase is archived and sent to an S3 bucket, referred to as the "artifact."

  • Without build artifact: If the option is chosen to perform deployment without an artifact, an EMPTY Tree SHA is utilized. In this scenario, the deployment system loads all content from the GitHub repository and performs the same checks. However, since an empty tree SHA is used, all files within the repository are considered, triggering all deployment actions.


Why can't we just do all deployments without building cache?

Building without artifacts for all deployments will result in longer deployment times since it's not always necessary to install vendor or download packages (npm/yarn) etc.


How to enable deployment without build cache

  1. Navigate to Application Management -> Deployments

  1. Click on the Start Deployment button

  2. Check the Deploy without build caches check box

PreviousDeploymentsNextQueue Tab (Launching soon)

Last updated 8 months ago

Was this helpful?