This article contains affiliate links. AutomateWithMNK may earn a commission if you sign up through certain links, at no additional cost to you. This does not influence our editorial assessment.
Git, SSH and cron on Cloudways: the short answer
On Cloudways Flexible you deploy code from a Git repository over SSH, from the application’s Deployment via Git tab: Cloudways generates a key, you add it to your repository, enter the repo’s SSH address and branch, and start the deployment. HTTPS repository URLs are not supported. For more control, SSH access is enabled per application and supports automated pipelines such as GitHub Actions. Scheduled tasks are managed from the dashboard, and for WordPress the official docs recommend replacing WP-Cron with a system cron job.
This guide relies on Cloudways’ technical blog posts and the WordPress developer docs, . It is written for PHP and Laravel developers; for Node.js, see Cloudways Velocity.
Explore Cloudways for your PHP projects
To compare with a server you run yourself, read Cloudways vs DigitalOcean.
Deploying from Git
Per Cloudways’ post on deploying a PHP application, updated December 3, 2025:
- Create the application from the Applications tab.
- In Deployment via Git, click Generate SSH Keys and download the public key.
- On GitHub, go to Settings, then Deploy keys, and use Add Deploy Key.
- Copy the repository’s SSH address; other formats such as HTTPS are not supported.
- Select the branch to deploy.
- Set the deployment path, ending it with a slash; left empty, code goes to
public_html/. - Click Start Deployment.
Updating and managing the repo
The same post says you can then pull the latest changes, switch branches, or remove the repository from the server, which deletes no files. Cloudways’ help center also describes webhook-triggered deployments using a Cloudways API token (from an excerpt; the page could not be read in full).
SSH access
Cloudways’ zero-downtime deployment post, updated February 4, 2026, covers two levels:
| Level | Where | Use |
|---|---|---|
| Application | Application settings: SSH Shell Access | App-scoped access; enable it on staging too |
| Server | Master Credentials, Launch SSH Terminal | Server terminal and public keys (SSH Public Keys) |
According to a help-center excerpt, running Git from the server’s command line requires master credentials, and keys generated in the UI only work for dashboard deployments.
GitHub Actions pipeline
The February 2026 post walks through a GitHub Actions workflow: the public key added under Master Credentials, the private key stored as a repository secret (SSH_PRIVATE_KEY), a .github/workflows/deploy.yml file that picks production or staging from the branch name, and file ownership reset through the Cloudways API. Two caveats from the post: database changes are not part of this deployment, and “zero downtime” still allows an error lasting a second or two while PHP-FPM restarts.
Scheduled tasks
Cron job management is among the dashboard settings, according to Cloudways’ Autonomous trial post, and per the help center, disabling access to an application also pauses its cron jobs. For WordPress, the developer docs explain that WP-Cron only runs on page loads, so tasks can lag on low-traffic sites. The documented fix is to add define( 'DISABLE_WP_CRON', true ); to wp-config.php and call wp-cron.php on a schedule from a system cron job, for example every 15 minutes.
Limits
- SSH repositories only, no HTTPS.
- The stack stays managed by Cloudways, so you do not get full system control as on an unmanaged server.
- The Lightning Stack ignores .htaccess files, so a PHP app’s rewrite rules may need adapting.
- Database migrations must be handled separately from code deployments.
Autonomous and Velocity
On Autonomous, the changelog says you can connect a Git repository directly to applications since June 2025. For Node.js, Velocity has its own GitHub-based deployment flow and starts at $20 a month (Starter: 2 GB RAM, 2 vCPU, 5 apps, checked October 21, 2026).
Pre-deployment checklist
| Item | Done when |
|---|---|
| Deploy key | Added to the repository |
| Repository address | SSH format |
| Deployment path | Ends with a slash |
| SSH access | Enabled on production and staging |
| Scheduled tasks | WP-Cron replaced by a system job if the site relies on it |
| Backup | On-demand backup before deploying (paid account) |
Try Cloudways on a test project
FAQ
Does Cloudways work with GitHub and GitLab?
Deployment works with any repository reachable over SSH; the official post walks through GitHub.
Can I use an HTTPS repository URL?
No, only SSH addresses are supported.
Do I get SSH access on Cloudways?
Yes, per application (SSH Shell Access) and at server level (Master Credentials), within a managed stack.
How do I make WordPress scheduled tasks reliable?
Disable WP-Cron in wp-config.php and call wp-cron.php from a system cron job, as the WordPress docs recommend.
Sources
Pages checked on .
- Cloudways: deploy a PHP application (updated December 3, 2025)
- Cloudways: zero-downtime deployments (updated February 4, 2026)
- WordPress: hooking WP-Cron into the system task scheduler
- Help center: Git deployment and Git via command line
- Changelog, Autonomous trial and Velocity
