Git integration doesn’t appear to be working
-
Issue: Git Deployment Not Updating Theme on WordPress.comProblem Description
I am using WordPress.com’s Git integration to manage and deploy my WordPress theme. However, after committing and pushing changes to Git, the deployment completes successfully as noted in the admin howver the files in
/htdocs/wp-content/themes/recipebook/are not updated.However, if I manually upload files via SFTP, the changes reflect immediately on my site. This suggests that Git deployment is either not applying changes correctly or WordPress.com is not recognizing the updated files.
I’ve looked at the log’s in the .code_deployments but there’s nothing interesting there indicating any error.I initially found that
recipebookwas a symlink pointing to another directory. I have since removed the symlink and replaced it with the actual theme files, but the issue persists.
Before (With Symlink)/srv/htdocs/wp-content/themes/recipebook -> /wordpress/themes/pub/recipebookAfter (With Actual Theme Files in Place)
/srv/htdocs/ │── wp-content/ │ ├── themes/ │ │ ├── recipebook/ # Now a real folder, not a symlink │ │ │ ├── style.css │ │ │ ├── functions.php │ │ │ ├── ... │ ├── plugins/ │ │ ├── my-custom-plugin/ │── index.php │── wp-config.php (ignored in Git)Steps Taken to Troubleshoot Checked Git Deployment Logs
- Deployment logs on wordpress.com > Hosting > Git Deployments show that Git pulls are succeeding, but files are not updating.
Checked for Symlink Issues
- The
recipebooktheme was originally a symlink pointing to/wordpress/themes/pub/recipebook. - Removed the symlink:
rm /srv/htdocs/wp-content/themes/recipebook - Replaced with the actual theme files from Git.
Tested Manual File Uploads (They Work!)
- If I manually upload the same files via FileZilla (SFTP), the changes apply immediately.
- This suggests Git deployment is not updating files correctly.
What I Need Help With
- Why isn’t WordPress.com applying my Git updates to
/srv/htdocs/wp-content/themes/recipebook/? - Is there an additional step I need to take to force WordPress to recognize the changes?
- Does WordPress.com require a specific process for deploying themes via Git that I’m missing?
- Could WordPress.com still be treating
recipebookas a symlink internally, even after I removed it?
The blog I need help with is: (visible only to logged in users)
- The topic ‘Git integration doesn’t appear to be working’ is closed to new replies.