
WordPress
How WordPress Version Control Actually Works
Learn how WordPress version control works across Git, databases, deployments, backups, rollbacks and multi-site workflows.
Master WordPress deployment with proven methods that eliminate errors and streamline your development workflow.
Deploying WordPress sites can be tricky at first, but once you get the hang of it, it might even become the easiest part of your workflow. You can use manual deployment via SFTP or more advanced CI/CD pipelines, but the right method should save you time and headaches down the road.
Join us as we explore some popular deployment methods and break down their pros and cons, so you can choose the best fit for your projects.
Before deploying a WordPress site, make sure you have the right hosting environment. Choose a reliable web host that supports PHP, MySQL and SSL. Modern WebOps platforms can help automate much of this process, but it’s important to understand the basics regardless.
Shared hosting can work for smaller sites, but VPS or dedicated hosting offers better performance and flexibility for growth. Install a fresh WordPress instance on your server or use one-click installations from your host if available.
Ensure your domain is set up and pointing to your server. You'll need to configure DNS settings to point to your hosting provider’s IP address. Make sure you have an SFTP client or SSH access to upload files to your server if necessary. If you plan on using a content delivery network (CDN) or caching, set that up as well for performance optimization.
Back up your files and database before deployment. Use tools like phpMyAdmin or WP-CLI to export your database, then download all WordPress files – themes, plugins and media – via SFTP, SSH or your hosting file manager. You’ll need to set up email notifications for your site as well, ensuring you can receive important updates or errors after deployment.
Finally, review your site’s security settings. Install an SSL certificate for secure HTTPS traffic, configure firewalls and ensure that the WordPress admin area is protected with strong passwords and, ideally, two-factor authentication.
The best place to deploy a WordPress site is with a host that specializes in it. Specialized hosts optimize performance, ensure compatibility and address WordPress-specific needs like database management and scaling.
Pantheon excels in this area, offering a container-based infrastructure, automated backups, a global CDN and Git workflows.
Otherwise, start by evaluating the specific needs of your project – performance, scalability and budget. Shared hosting is the easiest and most affordable option, but it comes with limitations in speed and customization. If you're working with a larger or growing site, consider VPS or cloud hosting (like AWS or Google Cloud). These options offer more control, better performance and scalability as your traffic increases.
Managed WordPress hosting is another good choice if you want to offload technical management like updates, backups and security.
If you need high levels of customization, opt for VPS or dedicated servers. These are ideal for sites with heavy traffic or complex functionality, though they require more technical knowledge to configure and maintain. Cloud hosting services like AWS or Azure are also a solid option for larger deployments that need to scale quickly, but they often come with a steeper learning curve.
Don't overlook the location of your hosting provider’s data centers. For better site speed, choose a host with data centers near your target audience. Latency can significantly affect user experience, especially for international users.
Finally, consider the long-term growth of your site. If you expect rapid growth or traffic spikes, choose a provider that can scale easily and offer flexible plans. Make sure they provide good support, reliable uptime and security features like automatic backups and SSL certificates.
The simplest method for WordPress deployment involves direct file transfer from local development to the server via an SFTP client like Filezilla or your hosting control panel.
This requires manual database synchronization, URL updates and careful file management. It’s suitable for simple sites, developers comfortable with manual processes, emergency fixes or situations where automated tools aren't available or overkill for the project scope.
Here’s how to manually deploy a simple WordPress website:
If you’re dealing with anything above a barebones website, you might need to skip this one and look into some other methods.
Migration plugins package your entire WordPress site (database, files, configurations) into transferable bundles.
They usually handle serialized data updates, URL replacements and path corrections automatically. They work best for non-technical users moving between hosts, going from staging to production or for one-off migrations where you need a complete site clone with minimal technical complexity.
Here’s a process that should work with most migration plugins:
This method is most effective for one-time deployments of static websites. Otherwise, the final two methods might be better for you.
Here, code changes trigger automated pipelines that test, build and deploy your site. WordPress CI/CD workflows can run security scans, optimize assets, sync databases and deploy to multiple environments.
This method is ideal for development teams, sites with frequent updates, complex applications requiring testing or when you need consistent, repeatable deployments with rollback capabilities.
If you’re running serious development, you’re likely using Git for version control, in which case GitHub Actions provides a strong system for deployment.
GitHub Actions is GitHub's built-in CI/CD platform that runs workflows on virtual machines whenever specific events occur in your repository, like pushing code or merging branches. You define workflows using YAML files that specify automated steps, which GitHub executes on its infrastructure and can deploy to any server via SSH, SFTP or APIs.
Many hosting providers offer prebuilt Actions for smooth deployment integration – Pantheon being a notable example – but you can always create custom workflows yourself:
name: Deploy WordPress
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
FTP_HOST, FTP_USERNAME, FTP_PASSWORD and DB_PASSWORD.- name: Install dependencies
run: |
composer install --no-dev --optimize-autoloader
npm ci
- name: Build assets
run: |
npm run build
composer dump-autoload --optimize
- name: Backup database
run: |
mysqldump -h ${{ secrets.DB_HOST }} -u ${{ secrets.DB_USER }} -p${{ secrets.DB_PASS }} ${{ secrets.DB_NAME }} > backup.sql
- name: Deploy files
uses: SamKirkland/FTP-Deploy-Action@4.3.3
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
exclude: |
**/.git*
**/.git*/**
**/wp-config.php
This should give you a functional CI/CD pipeline, but there’s a bit more you could do to make things as smooth as possible:
Hosting platforms like Pantheon offer one-click staging environments, automated backups and Git integration.
These tools are pre-configured for the host's infrastructure and often include performance optimizations. They’re perfect for users who want simplicity, don't need complex workflows or prefer integrated solutions that work natively with their hosting environment.
The exact steps may vary between hosts, so you should contact support or read the docs, but here’s how it usually goes:
For a more concrete illustration, let’s look at how Pantheon handles it.
Example: Pantheon WebOps workflow
Pantheon provides a structured three-environment workflow that separates code and content management. Every Pantheon site includes Dev, Test, Live environments, each running on its own container.
The core principle is "code moves up, content moves down" – you develop code in Dev, deploy it upward through Test to Live, while pulling fresh content downward from Live to Test and Dev for testing purposes.
Here’s the general workflow:
When deploying a WordPress site, issues can arise even with careful planning. Here's how to resolve them:
Here are some actionable WordPress deployment tips tailored to optimizing your workflow:
FORCE_SSL_ADMIN in your wp-config.php file and redirecting all traffic to HTTPS. This secures user data, boosts trust and prevents SEO penalties from search engines, which favor HTTPS sites.define('DISALLOW_FILE_EDIT', true); to wp-config.php. This hardens your site against brute-force attacks and prevents malicious edits to your theme or plugin files.WordPress deployment becomes significantly more streamlined when you have the right hosting infrastructure supporting your workflow.
Pantheon's Dev, Test, Live workflow eliminates the guesswork from deployments by providing clear separation between development, testing and production while automating the complex parts of database synchronization and URL management.
The "code moves up, content moves down" philosophy eliminates common deployment headaches, such as overwriting live content or testing with outdated data. Instead of manually coordinating file transfers and database imports across environments, you can focus on building features and fixing bugs while Pantheon handles the infrastructure concerns.
For development teams managing multiple WordPress sites or agencies juggling client projects, Pantheon's Git integration and one-click deployments can cut deployment time from hours to minutes. The built-in performance monitoring, automated backups and staging environments mean fewer late-night emergency fixes and more predictable release cycles.
Start building on Pantheon today and transform deployment from a necessary evil into a competitive advantage!

WordPress
Learn how WordPress version control works across Git, databases, deployments, backups, rollbacks and multi-site workflows.

Website Security
Learn how IT teams can manage WordPress vulnerability exposure after patching, from inventory and verification to investigation, recovery, and readiness.