cs-icon.svg

Deployments

During the deployment phase, your project is built and made available through a unique URL once it is deployed successfully.

A deployment is an environment in action. There can be multiple deployments in a single environment, out of which the active deployment uses the latest environment configuration to build the website.

This document details the following in your Deployments screen:

  • Deployment Information
  • Deployment Statuses
  • Logs

When you import a project from a Git repository:

Launch-Deployments-GitHub.png

When you import a project by uploading a .zip file:

Launch-Deployments-FileUpload.png

Deployment Information

The deployment information panel displays the details of your project deployment.

You can get the following information about your deployment from this panel if you created your project using a Git repository:

  • URL: Your project can be accessed at this URL once it has been built.
  • Branch: Displays the Git repository branch against which the environment was created.
  • Git Repository: Displays the Git repository you chose to create your project.
  • Created: Displays the time when the deployment was created.
  • Redeploy button: Allows you to redeploy your project.

Launch-Deployments-GitInfo.png

You can get the following information about your deployment from this panel if you created your project by uploading a file:

  • URL: Your project can be accessed at this URL once it has been built.
  • Created: Displays the time when the project build succeeded.
  • Redeploy button: Allows you to redeploy your project.
  • Download Code button: Allows you to download the code (.zip file) used for creating your project.
  • Note: The Download Code button appears only when the deployment goes to Active, Deployed, or Error status.

Launch-Deployments-FileInfo.png

On successful deployment, Launch also generates a preview image of your site that can be viewed on the deployment information panel.

Launch-Deployments-Preview.png

Deployment Statuses

Following are the different project deployment statuses available in Launch:

CodeStatusWhat it means
Launch_-_Deployments_-_Deploy_Live.png

Live

Deployment is successful and is currently active.

Launch_-_Deployments_-_Deploy_Deployed.png

Deployed

Previous deployment which was successful.

Launch_-_Deployments_-_Deploy_Failed.png

Failed

Deployment is unsuccessful.

Launch_-_Deployments_-_Deploy_Deploying.png

Deploying

Deployment is in progress.

Launch_-_Deployments_-_Deploy_Cancelled.png

Canceled

Deployment is canceled due to deployment build hours limits.

Launch_-_Deployments_-_Deploy_Queued.png

Queued

Deployment is queued due to an ongoing deployment in the environment, waiting for it to finish.

Launch_-_Deployments_-_Deploy_Skipped.png

Skipped

Already queued deployment is skipped to queue a new deployment.


Redeploys

You can redeploy your site any number of times to create new deployments. Redeployment can be done in one of the following ways-

  • By pushing a commit to your environment's corresponding Git branch when auto-deploy is enabled for the environment.
  • By calling a deploy hook generated on the environment.
  • By clicking the Redeploy button on the deployment info page.

If you are redeploying from the deployment details page or using a deploy hook, you can use a commitId to redeploy.

Launch-Deployments-CommitID.png

If you imported the project by uploading a file, you can redeploy without a commitId. Instead, when you click the Redeploy button, you can then choose one of the following options to redeploy:

  • Redeploy with the previously uploaded file.
  • Redeploy by uploading a new file.

Note: You do not need a commitId to redeploy if you opt to upload a file to import the project.

Launch-Deployments-Redeploy.png

Note: You cannot redeploy a site while a deployment is in progress.

Deployment Queuing Mechanism for an Environment

In Launch, you can redeploy your project multiple times. But when multiple subsequent deployments are triggered for a given environment, all intermediate deployments will be skipped and only the latest deployment will take effect.

Deployment Logs

You can find deployment logs in the Logs below Deployment Information. You can monitor the logs to get the details of the following deployment stages:

  • Installing the dependencies
  • Build creation
  • Cloud Functions
  • Success/failure of the deployment

You can also copy the log details by clicking the copy icon in the top-right corner of Logs.

Launch-Deployments-CopyLogs.png

Was this article helpful?
^