is there any way to easily update a plugin installed on multiple sites from a github repo. I know I can do it from the command line of each server using git pull. but is there a way to do it from the wordpress admin similar to how plugins are updated?
Leave a Reply
You must be logged in to post a comment.
I wrote a PHP class that allows a plugin developer to incorporate updates from GitHub within their plugin. Here’s a link for it -> https://github.com/jkudish/WordPress-GitHub-Plugin-Updater
Check out this plugin updater class for WordPress: https://github.com/jkudish/WordPress-GitHub-Plugin-Updater
I recently wrote up a post about deploying an entire WordPress site with a few custom plugins and theme to multiple servers using Capistrano. You could probably do the same for just the single plugin repo.
There’s a bunch of good posts out there for the step-by-step details on getting Capistrano going for WordPress.
The solution I eventually found was to use a deployment service such as http://deployhq.com and http://deploy.phpfog.com. The nice thing about these services is that you can easily rollback to any commit
I used this plugin
https://wppusher.com/
It works fine,
Supports github, gitlab, bitbucket
Free for public repositories
Since you mentioned in your comment that you are looking for an easy way and you’d rather not have to code it yourself I guess it is safe to recommend WP Package Editor (WP2E) a SaaS providing a way to deploy and manage a set of interdependent Themes & Plugins from a single dashboard.
Among other things the service uses a registered GitHub App to pull the latest version from public / private GitHub repositories.
The part of the documentation regarding GitHub implementation lists 4 conditions for a script to be successfully imported to the library of repositories and later be synchronized as an installer dependency:
You can also find more details about the registered app by visiting the Github Marketplace and look for the app of the same name: