How to Use DDEV and Git for Drupal Deployments on Shared Hosting

dashboard
Stephen Phillips, Hostreviews.co.uk / Unsplash

In a practical guide for Drupal developers, Leonardo Signorelli shares a detailed walkthrough in his blog post titled “A Complete Drupal Workflow: Local to Live Deployments on Shared Hosting Using DDEV and a Simple Deploy Script”. The article focuses on bridging local development with shared hosting using DDEV, Git, and a basic Bash script — ideal for solo developers, freelancers, or teams without access to complex CI/CD systems.

The tutorial begins by setting up a DDEV-powered Drupal instance locally, emphasizing consistent environment control. Git is used for version tracking, and a custom deploy.sh script handles uploads and file syncs to the production server via SSH and rsync. The author clearly distinguishes the responsibilities of local versus live environments — including how to manage .gitignore and site-specific configurations.

Practical advice is provided on structuring your Drupal project folder, handling file permissions, and avoiding common pitfalls with configuration exports. The script used in the tutorial automates most of the deployment process — from database import/export to syncing the sites/default/files directory — making it suitable for repeatable use.

While the guide doesn’t rely on advanced tools like GitHub Actions or hosting-specific integrations, it delivers a realistic and replicable solution for those working within tight constraints. It’s especially valuable for those hosting on platforms like cPanel, where SSH access is limited but still usable.

Disclosure: This content is produced with the assistance of AI.

Disclaimer: The opinions expressed in this story do not necessarily represent that of TheDropTimes. We regularly share third-party blog posts that feature Drupal in good faith. TDT recommends Reader's discretion while consuming such content, as the veracity/authenticity of the story depends on the blogger and their motives. 

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Organizations

Upcoming Events

Latest Opportunities