OctoberCMS plugin to automate Git Deployment Using Webhooks on Cloudways.
-
Install this plugin
-
Setup the link between Cloudways and GitHub
- Go to your Cloudways dashboard and generate SSH Keys (Your app > Deployment Via Git > Generate SSH Keys)
- Download the SSH keys
- Go to your GitHub repo settings > Deploy keys and add the keys previously downloaded
- Go to Cloudways (Your app > Deployment Via Git) and set the Git Remote addressa and branch
- Click Start Deployment
-
Create a Cloudways API key
- Log into the Cloudways Platform
- Generate your API key using this link https://platform.cloudways.com/api
- Copy the Key and Email (it is required in the settings for the plugin)
-
Configure your plugin in the Settings menu.
- You can find your App id in the URL
ex:https://platform.cloudways.com/apps/42/access_detail
means that the app id is42
- Server ID can be found with by the same way
ex:https://platform.cloudways.com/server/15/access_detail
means that the server id is15
- Don't forget to change the GitHub URL to match your repos.
- You can find your App id in the URL
-
Add a Webhook to your Git Repository
- Copy the WebHook URL: displayed on the plugin settings page
- Go to your GitHub repo's Settings > Webhooks section
- Click on Add Webhook
- Paste the WebHook URL provided by the plugin in the Payload URL field and click Add webhook
More informations about setting up Git deployment for Cloudways
https://support.cloudways.com/using-git-for-deployment/
inetis is a webdesign agency in Vufflens-la-Ville, Switzerland. We love coding and creating powerful apps and sites see our website.