Cloudways Autonomous offers Git Deployment, allowing you to pull code directly from your Git repository with a single click.
Git is a version control system that helps developers track changes, collaborate efficiently, and manage code history.
It enables safe rollbacks, better teamwork, and faster deployments. With this feature, you can streamline your workflow and deploy updates with confidence and ease.
Git integration on Cloudways Autonomous makes it easy to deploy your code directly from a Git repository to your application.
Whether you're working with a staging or production environment, Git-based deployments save time, reduce errors, and simplify your development process.
This guide will walk you through the steps to set up and deploy code using Git on the Cloudways Platform.
Table of Contents:
How to Deploy Code to Your Application Using Git on Cloudways Autonomous?
To deploy your code using Git on Cloudways Autonomous, you'll first need to connect your Git repository and configure deployment settings.
Deploy Code to Your Application Using Git
Follow the steps below to push your code seamlessly to your application with minimal setup.
Step #1 — Access Cloudways Autonomous:
Log in to the Cloudways Platform.
On the main dashboard, click the Try Now button under the Autonomous section if you haven’t yet created an application.
If you already have applications in autonomous mode, click on the directional arrow.
Step #2 — View Application List:
Inside the Autonomous section, scroll to the My Applications list.
If you haven’t added any application, you can do this by clicking on the ‘Add Application’ button as shown below.
If you already have added applications, select your desired app from the list to start configuring Git deployment. (in this case Baby Store App)
Step #3 — Open Application Overview:
After clicking on the application (Baby Store App), you will be redirected to the Application Overview page.
From the top menu, click Workflow/Tools to open developer options for your application.
Step #4 — Open Deployment via Git:
Once on the Workflow/Tools tab, check the left sidebar and select Deployment via GIT.
Step #5 — Generate SSH Keys:
Click Generate SSH Keys to initiate the Git connection process.
This generates a secure SSH key pair for authentication (This process may take a few minutes).
Step #6 — View SSH Key:
Click View SSH Keys to display the public SSH key.
Step #7 — Copy SSH Key:
Now, copy the SSH Key.
You can also download this key by clicking on ‘Download SSH Key’.
Step #8 — SSH and GPG Keys Tab on GitHub (or Git Provider):
Open your GitHub account, go to Settings → SSH and GPG Keys tab.
Click on the New SSH key.
Step #9 — Add SSH Key to GitHub (or Git Provider):
Now, paste the copied key, name it for reference in the Title box (Baby Store)
Click Add SSH key.
Step #10 — Copy Your Git Repository's SSH URL from GitHub:
Log in to your GitHub account at github.com.
Once logged in, go to the Home page.
From the left sidebar, click on the repository you want to deploy from.
On the repository page, click the green Code button.
In the pop-up, switch to the Local tab and then select SSH.
Click the copy icon next to the SSH URL to copy it.
This SSH link will be used in the Cloudways Platform for authentication and code deployment.
Step #11 — Paste Git Repository URL and Authenticate:
Get back to the Cloudways Platform.
Paste the Git remote SSH URL into the GIT Remote Address field and click Authenticate. (This process can take a few minutes)
Step #12 — Select Branch and Set Deployment Path:
Once authenticated, select the desired branch from your Git repository (e.g., main, Cloudways, etc.) and confirm the Deployment Path (usually public_html/).
Click Start Deployment to begin pulling code from your Git repository to your application. You will see a loading state during this process.
Step #13 — Use Pull for Future Updates:
Once the setup is complete and your code is deployed, you’ll see a Pull button.
Use this to fetch and deploy future updates anytime.
FAQs
What Git repositories are supported on Cloudways Autonomous?
Cloudways Autonomous supports all major Git repository providers that offer SSH access, including GitHub, GitLab, Bitbucket, and Assembla.
How do I verify if my SSH key is correctly connected to my Git account?
Make sure your SSH key is properly added to your Git repository account under SSH settings. Without this connection, authentication will fail during deployment.
Can I deploy from multiple branches in the same repository?
Yes, you can choose any available branch from your authenticated repository when setting up the deployment. Simply use the dropdown next to the Branch field after authentication.
What happens when I click the Pull button after the initial deployment?
The Pull button allows you to fetch the latest code from your selected branch without needing to reconfigure anything. It’s a one-click way to update your application with new changes.
Is it safe to use Git deployment on a live (production) site?
Yes, but it's recommended to test deployments on a staging environment first. This helps you avoid potential issues before pushing changes live.
That’s it! We hope this article was helpful.
Need Help?
If you need assistance, feel free to:
Visit the Cloudways Support Center
Chat with us: Need a Hand > Send us a Message
Or create a support ticket anytime.
We're here 24/7 to help you!