For software development teams, automated deployments have become imperative to the process flow. Manual deployments are error-prone. Manual deployments sap energy and effort of the team members.
Any Managed Cloud Hosting Platform which claims to be a high-quality solution must provide the ability to automate deployment. This is why Cloudways does exactly that. Earlier, I explained how to automate deployment using DeployHQ.
You can also achieve deployment automation using DeployBOT (or dploy.io).
Deployment using DeployBOT
DeployBot is a deployment tool that connects your code repositories to your servers. In this article, I will describe how you can deploy your code on a Cloudways server using DeployBot.
Create a DeployBot Account
You can create an account for free which will be used for a single repository.
Connect a repository
DeployBot has out-of-the-box support for GitHub and BitBucket, but you may also connect to other repositories.
Configure the environment
By default, the deployment will be manual. However, you can change it to ‘automatic’ to start the deployment whenever a change is made in your repo. You may also need to change from ‘master’ to the branch you want to use.
Configure the server
Select SFTP under Files section.
You can get the login credentials from the Master Credentials section inside the Cloudways Server Console.
Enter the SFTP into DployBot.
Navigate to Dashboard and click “Deploy”. On the deployment screen, click “Start deployment”.
Note: You may click on “Preview the files to be deployed” button to have a look which files are going to be changed (or deleted) by the deployment as any manual change previously done on SFTP will be overwritten.