Home MiscellaneousHow to Automate Deployments with RunCloud

How to Automate Deployments with RunCloud

by SupportPRO Admin

Automating deployments streamlines the process of updating your web applications, reducing manual intervention and minimizing the risk of errors. RunCloud offers powerful deployment automation through Git integration and Atomic Deployment. This guide walks you through setting up automated deployments for your web applications using RunCloud.

Why Automate Deployments?

Manual deployments can be time-consuming and error-prone. By automating the deployment process, you benefit from:

  • Consistency: Every deployment follows a predefined process, eliminating human errors.
  • Speed: Code changes go live faster without manual uploads.
  • Rollback Safety: Atomic deployment ensures that if an update fails, your site remains online with the last successful version.
  • Seamless Collaboration: Developers can push updates via Git without needing direct server access.

Prerequisites

Before proceeding, ensure that:

  • You have a RunCloud account.
  • Your server is connected to RunCloud.
  • A Git repository (GitHub, GitLab, or Bitbucket) is set up with your application code.
  • SSH key authentication is enabled between your repository and server.

Step 1: Connect Your Git Repository

RunCloud allows you to connect Git repositories to your web applications, enabling automated deployments. To do this:

  1. Log in to your RunCloud dashboard.
  2. Navigate to Web Applications and select your application.
  3. Click on the Git tab and choose Enable Git Deployment.
  4. Select your Git provider (GitHub, GitLab, Bitbucket, or a custom Git repository).
  5. Add your repository URL and branch (e.g., main or production).
  6. RunCloud will prompt you to add an SSH key to your Git repository for authentication. Copy the provided SSH key and add it to your repository’s settings.

Step 2: Enable Atomic Deployment

Once your Git repository is connected:

  1. Begin by navigating to the Atomic Deployment section from the left-side menu.
  2. Click on Deploy a Project to proceed.
  3. Navigate to Web Applications and select your application.
  4. Click on the Git tab and scroll down to Atomic Deployment.
  5. Enable Atomic Deployment, which ensures zero-downtime deployment by:
    • Creating a new release folder for each deployment.
    • Updating the symbolic link only when the deployment is successful.
    • Keeping previous releases intact, allowing quick rollbacks if needed.
  6. If a deployment fails, RunCloud will automatically revert to the last successful version to prevent downtime.

Step 3: Testing Your Automated Deployment

After configuration, test your deployment by making a commit to the linked branch. RunCloud should automatically pull the latest changes and update your application.

To verify:

  1. Ensure that the latest commit is reflected in your application.
  2. Visit your application to confirm that the updates are live.

By following these steps, you can ensure smooth and consistent deployments without manual intervention.

Automating deployments with RunCloud simplifies application updates and enhances reliability. By integrating Git and using atomic deployment, you ensure a seamless and efficient workflow. Start automating today and focus on building your applications while RunCloud handles the rest!


If you have any questions or need further assistance on RunCloud deployment automation, feel free to reach out to our support team!

Facing issues?

Our technical support
engineers can solve it.

Contact Us today!
guy server checkup

You may also like

Leave a Comment