cs-icon.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.
      Launch_Auto-Redeploy_Deploy_Hook-CopyURL.png
    2. Go to your stack and then go to Settings > Webhooks.
      Launch_Auto-Redeploy_Webhook_Left-Nav.png
    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.
      Launch_Auto-Redeploy_Webhook_Name_URL.png
    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.
      Launch_Auto-Redeploy_Webhook_Save.png

    You will see the conditions updated on the Webhooks page.

    Launch_Auto-Redeploy_Webhook_Display.png

  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.
    Launch-Auto_Redeploy-PublishEntry.png
    On clicking Publish, the Webhook gets triggered and the project gets automatically redeployed in Launch.
Was this article helpful?
^