Auto-update a custom theme from Subversion/Git repository
Would be cool to have an easy way to deploy a custom theme from a development environment (eg: local computer running WAMP) to staging and production environments (both on hosted servers). The ideal workflow I am looking for would utilize Subversion as a source code repository and would look like this:
1: Developer makes changes to custom theme in their local environment
2: Developer commits code into a Subversion/Git repository that is accessible by production environment
3: User logs into production WordPress control panel (production)
4: Goes to the Appearance | Themes section
5: Clicks "Update Theme" button on custom theme's display panel that updates theme from the trunk of the corresponding SVN/Git repository.
Nice to haves:
- A way to roll changes back to a previous revisions
- A notification telling the user that there is a theme update available
- A way to commit code directly from within WordPress (if you changed anything using the theme editor built into WordPress)
We already use SVN for themes.
Git talk is here: http://wordpress.org/extend/ideas/topic/create-git-repositories-for-plugins-and-themes
What you're talking about is something that WP Engine, and others, have done, but are a hosting issue, not a WP one.
I know WP uses SVN for themes that are published in the W.org public themes directory...what I am suggesting, unless this is already available, is that WP extends that functionality to private themes, or ones that you do not want to publish on WordPress.org.
If there were a way to install a theme through the WP "Install Themes" utility by providing the SVN repository url, username, and password that would be nice. Those parameters could then be stored and then all the neat SVN updating stuff already built into wordpress would then be available.
Yes and no.
The install process like that actually isn't SVN even for WP. But you CAN code into your theme a way to host your own update repository :)
ETA: Basically once the user uploads the zip, they'd get prompted for any updates from your own site.
So Does anyone have any information on how one might go about creating some sort of repository not hosted on WordPress that I can update changes to for a theme? I want to be able to host a theme I have outside of WordPress but still have the same auto-update functionality as ones hosted at Codex.
My project GitHub Updater, https://github.com/afragen/github-updater does this for both plugins and themes hosted on GitHub.
RSS feed for this topic
This topic has been closed to new replies.