How to deploy GIT repositories

How to deploy GIT repositories

Our GIT deployment tool allows you to clone and manage GitHub repositories directly from the cdmon dashboard, without using FTP or GIT commands. This makes it easy to install and update projects quickly and easily.

To manage GIT repository deployments in our dashboard, we must first access the relevant section, from "File managers" and click on "Deploy GIT repositories"


Here you can see existing deployments and make new configurations:
1. Connect with provider (GitHub)

Everyone's first step is to connect your hosting with the provider where you have the repository you want to deploy. Currently, the only supplier we have available is GitHub. You can follow these steps:
  • In the "List of GIT Repositories", select+ Deploy GIT repository.


  • Connect with your GitHub account. If this is the first time, permissions will be requested to access the repositories.


  • When signing in with your GitHub account, you will need to authorize the connection to continue selecting the repository, you can select whether you want to give access to all the repositories created or select some specific ones:


2.Deploy a new repository
  • After connection, hclick on the button again onDeploy GIT Repository.Al click on GitHub, the repositories to which permissions have been granted will be listed.. Select the repository you want to deploy.


  • The available branch will be displayed, by default "main" will appear. If more branches are available, choose the one you want to deploy.


The next step is the configuration of deployment on our server. From here you can configure the Environment Variables and in the advanced options you can customize routes:
For environment variables:
  • Enter the name of the variable and its corresponding value. You can add more variables with the button +Add environment variable.


From the advanced deployment options, you can configure these options:
  • Public Folder: Indicates the folder that the server must expose to the Internet (e.g.publicorweb).
  • Associate the domain: Allows you to select whether deployment is associated with a hosting subdomain or another domain within the same hosting.


  • Once the options are configured, clickDeploy Application.
  • The dashboard will display real-time logs of the deployment process.
  • At the end, the message will appearDeployment completed successfully.


  • By clicking Accept you will be redirected to the list of GIT repositories.

3.Edit an existing deployment
In the "Actions" column, select theediting button(the icon ):


  • It will open it configuration screen used when creating deployment. From here, you can make the following changes:
    • Environment variables: Add new ones, modify or delete existing ones.
    • Public folder: Change the folder exposed to the Internet.
    • Domain Association: Modify the domain or subdomain linked to deployment.
The file will be updated.envwith the new variables and the public folder or domain will be reconfigured as appropriate.

4.Redesign a repository
In the "Actions" column, select theredeploy button(the icon):


  • It will opena confirmation window with the message indicating the actions to be taken. In short, when redeployment is done, this consists of:
    • The latest version of the repository will be downloaded and existing files on the server will be overwritten.
    • The configuration set in the first deployment will remain unchanged.
    • Therepository in GitHub will not be affected, only the files on our server will be modified.
    • During the process, the service may undergo a brief cut.


Confirm the action to initiate redeployment. Once completed, your project will be updated with the latest version of the repository.
Note:If you want to keep the files from the current deployment, we recommend backing up before redeploying the repository.

5. Delete a deployed repository
When removing a deployment:
  • The folder where deployment was deployed will be deleted, along with all the files in the repository.
  • The domain or subdomain association configured for this deployment will be removed.
Note:If you want to keep the deployment files, we recommend backing up before deleting the repository.

To delete a deployment, select the Delete in the list of deployed repositories.


A confirmation message will be displayed before proceeding.


For more information, you can contact us.
    • Related Articles

    • How to create a GIT repository

      Here's step-by-step how to create and manage a GIT repository from your dashboard. This process is simple and straightforward, allowing you to set up a development environment quickly. Access to hosting Developer hosting Activate developer hosting ...
    • How to use GIT commands with Bitbucket repository

      In this tutorial we will show the steps to take to use the GIT commands to clone files from your hosting in a repository created in Bitbucket with the SSH of their cdmon hosting. First of all, you need to have a repository created in Bitbucket. If ...
    • Staging: create test environments without affecting your main website

      The tool ofStaging(or test environment) allows you to create afunctional copy of your websitein an isolated environment. It is ideal for doingtests, apply updates or make changeswithout affecting your main website. Enter the control panel Access the ...
    • How to manage our web hosting

      With the "Control Panel" of the web hosting, you can manage your hosting comfortably. The panel is made up of a section with hosting information and different sections with tools. To access the management panel of the hosting, in the "Basic list of ...