Post-deploy variables

The following post_deploy variables control actions in the post-deploy phase and can inherit and override values from the Global variables. Insert these variables in the post-deploy stage of the .magento.env.yaml file:

stage:
  post-deploy:
    POST-DEPLOY_VARIABLE_NAME: value

For more information about customizing the build and deploy process:

WARM_UP_PAGES

  • Defaultindex.php
  • Version—Magento 2.1.4 and later

Customize the list of pages used to preload the cache in the post_deploy stage.

stage:
  post-deploy: 
    WARM_UP_PAGES:
      - "index.php"
      - "index.php/customer/account/create"

You must configure the post-deploy hook. See hooks section of the .magento.app.yaml file.

Also, you can configure the cache to preload pages for multiple domains.

stage:
  post-deploy:
    WARM_UP_PAGES:
      - 'test'
      - 'http://example1.com/test'
      - 'http://example2.com/test'