CS-log-dark.svg

Redeploy Automatically when Content is Published on CMS

Launch allows you to set up a site to redeploy automatically when its content is modified in the CMS.

This step-by-step guide lets you redeploy automatically when content is published on your Contentstack CMS.

Prerequisites

  1. Contentstack account
  2. Access to Launch for your organization
  3. A site on Launch that fetches data from the CMS

Steps for execution

Follow the steps to redeploy automatically when content is published.

  1. Create a deploy hook in Launch.
  2. Follow the steps to add the deploy hook as a Webhook to Contentstack CMS.
    1. Copy the deploy hook URL.
      Click to enlarge
    2. Go to your stack and then go to Settings > Webhooks.
      Click to enlarge
    3. Click the + New Webhook button.
    4. In the Name field, enter a suitable name for the Webhook.
    5. In the URL To Notify field, paste the deploy hook URL.
      Click to enlarge
    6. In the Trigger Conditions field, enter the conditions for the deploy hook to trigger.
    7. Click the Enable Webhook toggle button.
    8. Click the Save button.
      Click to enlarge

    You will see the conditions updated on the Webhooks page.

    Click to enlarge

  3. Go to the entry where you want to make the update.
  4. Make the necessary updates, and click the Save button.
  5. Click the Publish button, select Environment(s) and Language(s), and then click the Send button.
    Click to enlarge

    On clicking Publish, the Webhook gets triggered and the project gets automatically redeployed in Launch.