This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

CloudwaysCDN — a powerful solution that offers superior performance and satisfied global audience for your business. Read More

How to automate your deployments to Cloudways using DeployHQ

Updated on  21st August

3 Min Read
Reading Time: 3 minutes

DeployHQ is an amazing tool to automate your deployments from Git, Mercurial, and Subversion code repositories. Git-based deployment is now becoming de-facto standard in any good development agency. This makes lives easy as it reduces the hassle of uploading and downloading source files.

In this post, we will describe how you can integrate DeployHQ with your web app hosted on Cloudways. This integration would ensure on-the-go deployment of the code. With Cloudways staging-friendly environment, developers can experiment with their code as much as they want.

So, here are the steps.

Create a DeployHQ account

Register an account on DeployHQ. (The free account can be used for 1 project and 10 deploys per day)

Create a new project in DeployHQ

You will need to create a project to start your deployment process.


Connect DeployHQ with your code repository

Enter the details of your code repository (or “code repo”). DeployHQ has out-of-the-box support for popular code hosting sites, like Github, Bitbucket, etc.

Read more: Enhanced Cloudways Staging Environment Is Now Available for All Users

Add Path Of Github Repository

To start deployment first you need to add the repository path from github like this.

Configure the server

Select SSH/SFTP as Protocol.

Then, fill up the SSH Configuration.


Hostname: Public IP of your server
Username: Username from Master Credentials
Password: Password from Master Credentials
Deployment Path: Full path on your Cloudways SFTP server where you’d like to deploy to (Examples: /home/master/applications/<applicationname>/public_html or /home/master/applications/<applicationname>/public_html/themes)
Use SSH Keys for authentication?: Unchecked

You can get the login credentials  from the Master Credentials section inside the Cloudways Server Console.


You can also customize the process as per your need  in Deployment and Notification section.

For example, you may need to change the branch from master to any other branch that you like to deploy from or subdirectory if you don’t want to deploy the whole repository.

In the end, click “Save”. you will see your server is configured.


Click “Deploy Now”. On the deployment screen, you can click the “Deploy” button to start the deployment process instantly.

Note: You may click the “Preview” button to have a look which files will be changed (or removed) with this deployment as any changes done previously via SFTP will be overwritten by the process.

Cloudways is a developer’s best friend

The aim of Cloudways is to make the lives of developers easier. Cloudways Cloud Platform is filled with features that are makes it a truly developer-friendly cloud hosting medium. You can spin up ready-to-use PHP servers in less than 8 minutes.

Too good? Well, test us! Sign up now for a free trial.

Share your opinion in the comment section. COMMENT NOW

Najmus Saqib

Najmus Saqib is currently working as Senior Software Engineer at Cloudways. He specializes in PHP, Python, and Google App Engine.

Start Growing with Cloudways Today.

Our Clients Love us because we never compromise on these

Get Our Newsletter
Be the first to get the latest updates and tutorials.