cs-icon.svg

Setup Production and Non-Production Environment

When apps are being developed and released, software developers use environments to create stages. As per industry standards for environments, most of the processes begin with development and end with production.

Launch allows you to create such environments.

This step-by-step guide will walk you through the process of creating both production and non-production environments.

Prerequisites

  1. Contentstack account
  2. Access to Launch for your organization

Create a Production Environment

Follow the steps given below to convert the Default environment of a project to a production environment.

  1. Log in to your Contentstack account and select the Launch icon from the left navigation panel.Launch_New_LeftNav_Hover.png
  2. On the Launch landing page, open the project for which you want to change the Default environment to production environment.
  3. On the Environments screen, click the ellipses under Actions, next to Default, and then click Settings.Launch_Prod-NonProd_Settings.png
  4. In Environments under Settings, click General and enter Production as the Environment Name.

    Launch_Prod_Non-Prod_Venus2_General.png

  5. Click the Save Environment Details button.
  6. Next, click Deployments.
  7. Click the Auto Deploy on Commits toggle to disable it, and then click the Save Deployment Settings button.

    Note: For Git repository based projects, you can prevent the ‘Production’ environment from automatically deploying any new commits that you push.

    Launch-Disable-Production.png

  8. You can add a custom domain for your projects. To do this, click Domains and then the + New Domain button, to add a custom domain.

    Launch_Prod_Non-Prod_Venus2_Domains.png

    Launch_Prod_Non-Prod_CreateDomainModal.png

  9. Click the Environments icon in the left panel and then click the production environment you created to view the Deployments page.

    Launch_Prod-NonProd_Deployement.png

With these steps, you have successfully set up a production environment for your projects.

Create a Non-Production Environment

Follow the steps given below to create a non-production environment.

  1. Follow the steps provided in the Create an Environment section in this guide.

    Note: Make sure to add the Environment Name as per the non-production environment you want to create. For example, if you want to create a development environment, add the Environment Name as Development.

  2. Next, in Environments under Settings, click Deployments.
  3. Click the Auto Deploy on Commits toggle to enable it, and then click the Save Deployment Settings button.

    Launch-Enable-Development.png

    Note: Skip this step if the Auto Deploy on Commits toggle is already enabled.

You have successfully set up a non-production environment for your projects.

Was this article helpful?
^