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.
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.
Start Creating Web Apps on Managed Cloud Servers Now!
Easy Web App Deployment for Agencies, Developers and E-Commerce Industry