Deploying a WordPress Site
WordPress and Git
Keep your WordPress theme and custom plugins in a Git repository for version control and automated deployments.
Setting Up the Repository
You can track your entire WordPress installation or just the wp-content directory.
Excluded Files
Use a .deployhqignore file to exclude uploads, cache files, and wp-config.php from deployments.
Database Migrations
DeployHQ handles file deployments. For database changes, use a WordPress migration plugin.
Caching
Clear your WordPress cache after deployment to ensure visitors see the latest content.