RunCloud allows you to easily deploy, configure, and manage your web applications. In this post, we will show you how to use RunCloud with Bitbucket to automate your deployment workflow.

Before we get started, you’ll need to create a repository on Bitbucket that hosts the code for your web application, and you’ll also need to create a RunCloud server for deploying your web application. Once you create your server, you will see a dashboard with information about it, such as IP address, hostname, OS, etc.

The first step is to create a RunCloud web application that will run your web app. In your RunCloud dashboard, click on “Deploy a web app” and switch to the Git Repository tab.

On this screen, select Bitbucket from the list of git providers. You can also configure the web server settings, such as domain name, SSL certificate, PHP version, etc.

Once you have configured the basic settings, scroll down to the Git section and enter the name of the repository, as well as the branch that you want to deploy.

The next step is to create a deployment key that will allow RunCloud to access your Bitbucket repository. A deployment key is an SSH key that grants access to a specific repository.

If you don’t have a deployment key, you can create a new one by clicking the Generate Key button on the right. After generating the key, copy the public key displayed on the screen.

Next, go to your Bitbucket repository dashboard and click on the Settings tab. Click on the Access keys option under Repository settings.

Click on the Add key button and paste the public key. Give this key a label, such as RunCloud, and then click the Add key button.

BitBucket access keys

The final step is to deploy your web application. You can do this by going to your RunCloud web application dashboard and clicking on the Deploy App button on the bottom right of the screen.

How to use RunCloud with Bitbucket

That’s it! You have successfully used RunCloud with Bitbucket to deploy your web application. You can now enjoy the benefits of a fast, secure, and scalable cloud server management platform. 🚀

Using Git deployment makes it easy to deploy the correct version of your application, but you can take it a step further to deploy the latest version of your app automatically. To do this, you need to use Webhooks to trigger a new deployment.

After creating your web application, navigate to the Git tab in the left menu and copy the webhook URL displayed on the screen.

Next, go to the repository settings in the Bitbucket dashboard and open the Webhooks page. On this page, click on Add webhooks to automatically notify RunCloud when a update is pushed to your app.

On the next screen, provide a descriptive name and paste the URL that we copied earlier. Once you have added the above information, leave the rest of the settings as default and click Save.

After adding the webhook, your web application will be updated automatically whenever you push a change to the selected branch.

If you want to perform custom actions before or after the deployment, such as running scripts, sending notifications, etc. then you should check out Atomic deployment on RunCloud.