Verifying an ideal configuration

The ideal configuration for your Cloud project helps to minimize deployment downtime by warming the cache and generating static content when requested by the user. This wizard automatically runs during the deployment process. If your Cloud is not configured for this ideal state, then you receive a message similar to the following:

- SCD on build is not configured
- Post-deploy hook is not configured
- Skip HTML minification is disabled

Ideal state is not configured

Based on the output, you need to make the following corrections to your configuration:

  1. Enable the Skip HTML minification variable.

    .magento.env.yaml

    stage:
      global:
        SKIP_HTML_MINIFICATION: true
    
  2. Configure the post-deploy hook.

    .magento.app.yaml

        post_deploy: |
            php ./vendor/bin/ece-tools post-deploy
    
  3. Push your code changes and run the test again. When your configuration is ideal, you receive the following message.

    Ideal state is configured
    
Previous pageStatic content deployment
Next pageDeploy to Staging and Production

Commerce