• Are you a partner? Please find our certification tracks on our legacy Academy.

Setting up Production and Non-Production Environments

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.

Prerequisites

  1. Contentstack account

  2. Access to Launch for your organization

Create a Production Environment

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

  1. From the Launch landing page, open the project for which you want to change the Default environment to production environment.




  2. In the Environments screen, click the Default environment.

  3. Click the ellipses next to Default and then click Configure.

    Note: You can also create a new environment for production by following the steps in the Create an Environment section in this guide. Then, proceed with the following steps to configure the environment to set it up as a production environment.

  4. In Environments under Settings, click General and enter Production as the Environment Name.

  5. Click the Save button.

  6. Next, click Deployments.

  7. Click the Auto Deploy toggle to disable it, and then click the Save button.

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

  8. You can add a custom domain for your projects. Click Domains and click the + New Custom Domain button, to add a custom domain.



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



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



Create a Non-Production Environment

Follow the steps 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 toggle to enable it, and then click the Save button.



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

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