cs-icon.svg

Launch

Launch is a deployment platform that enables you to host your Contentstack-powered website instantly. To get started, simply create a new project in Launch and link it with your GitHub repository.

The Launch connector in Automation Hub lets you trigger deployments of projects created in the Contenstack Launch platform. With the Revalidate CDN Cache action, you can revalidate the CDN cache of your Launch environment by providing a revalidation path.

Using the Revalidate CDN Cache Action will allow you to refresh the cache of specific site URLs and show new content where previously cached content was published. This is especially useful in the case where you do not want to rebuild and redeploy your entire website to make minor content changes.

The steps below will help you set up your Launch Connector, set up a Deployment Action, and set up automatic cache revalidation.

Set up Launch

Perform the following steps to set up the Launch action connector:

  1. Click Configure Action Step from the left navigation panel.
  2. Click Action Step to configure third-party services.
  3. Within the Configure Action Step, click the Launch connector.

    Note: You can sort and search the connector(s) based on the filter.

    Select_Connector_New.png
  4. Under Choose an Action tab, you will see two actions:
    1. Deploy a Build
    2. Revalidate CDN Cache
  5. Let’s look at each of them in detail.

    Action 1: Deploy a Build

    1. Under Choose an Action tab, select the Deploy a Build action.
      Deploy_a_Build_Action.png
    2. Click the + Add New Account button to add your Launch account.
      Add_New_Account_Deploy.png
    3. In the pop-up window, mark the checkboxes for all the OAuth permissions and then click the Authorize button.
      Authorize
    4. In the pop-up that appears, select your organization to complete the authorization.
      Organization-Access
    5. Enter an Account Name and then click Save.
      Save-Button
    6. Select a Project created in the Launch platform from the Lookup dropdown.
    7. Select an Environment where you want to deploy your build from the Lookup dropdown.
      Select_Different_Fields_Deploy.png
    8. Click Proceed.
    9. Click Test Action to test the configured action.
      Test-Action

      Note: If a deployment is ongoing and you trigger a new one in the same instance, then the previous deployment will show as “Failed” in Launch.

    10. Once set, click Save and Exit.
      Save-Exit
    11. Navigate to the Launch platform to view the deployment status of your project in the Deployments tab.

    Action 2: Revalidate CDN Cache

    1. Under Choose an Action tab, select the Revalidate CDN Cache action.
      Revalidate_CDN_Cache_Action.png
    2. Click the + Add New Account button to add your Launch account. If you have already connected your account, then skip to Step 6.
      Add_New_Account.png
    3. In the pop-up window, mark the checkboxes for all the OAuth permissions and then click the Authorize button.
      Authorize_Button.png
    4. In the pop-up that appears, select your organization to complete the authorization.
      Organization-Access.png
    5. Enter an Account Name and then click Save
      Account_Name.png
    6. Select a Project created in the Launch platform from the Lookup dropdown.
    7. Select an Environment where you want to revalidate the cache from the Lookup dropdown.
      Select_Different_Fields.png
    8. In the Revalidation Path, enter the URL for which you want to revalidate the CDN cachet. You can optionally mark the Is Prefix - Include all the nested URLs under the revalidation path checkbox to revalidate all the nested URLs under the revalidation path.
      Revalidation_Path.png
    9. Click Proceed.
    10. Click Test Action to test the configured action.
      Test_Action.png
    11. Once set, click Save and Exit
      Save_Exit.png
    12. Navigate to your website and reload the page to see the updated content.

This sets the Launch action connector.

Was this article helpful?
^