{"id":710,"date":"2016-06-15T23:48:00","date_gmt":"2016-06-15T18:48:00","guid":{"rendered":"https:\/\/thedevcouple.com\/?p=710"},"modified":"2017-07-17T09:16:48","modified_gmt":"2017-07-17T04:16:48","slug":"auto-sync-github-repositories-to-wordpress-with-wp-pusher-plugin","status":"publish","type":"post","link":"https:\/\/thedevcouple.com\/auto-sync-github-repositories-to-wordpress-with-wp-pusher-plugin\/","title":{"rendered":"Auto-Sync GitHub Repositories to WordPress with WP Pusher Plugin"},"content":{"rendered":"<p>With the right mix of minor to major functionalities, WordPress developers are building products for clients as well as for themselves. The most native procedure is, you develop a theme or a plugin locally and then host it somewhere. <a href=\"https:\/\/github.com\/\" rel=\"nofollow noopener\" target=\"_blank\">GitHub<\/a> is that <em>somewhere<\/em> which has become a\u00a0popular choice for most professional developers over the years. The fact about Git being preferred despite the WordPress core still using\u00a0<a href=\"https:\/\/subversion.apache.org\/\" rel=\"nofollow noopener\" target=\"_blank\">SVN<\/a> for version control tells all the pros that are associated with it.<!--more--><\/p>\n<p>But let me remind you about a process which iterates each time you hand over the project to a client. I&#8217;m talking about the moving of project&#8217;s files onto the client&#8217;s server. The process is even more nerve-wracking when you have to do it manually via FTP. I&#8217;m sure you\u2019re doing it for most of the time, and you consider it worth repeating.<\/p>\n<h2>WP Pusher Pugin<\/h2>\n<p>WordPress&#8217; integration with third-party tools and software are taking this CMS to a next level and is not new. Unlike, several other such developments, there aren&#8217;t many tools which allow an easy integration of Git-managed themes and plugins with WordPress. In such a scenario, the existence of the <a href=\"https:\/\/wppusher.com\/\" rel=\"nofollow noopener\" target=\"_blank\">WP Pushe<\/a>r plugin is quite a genius move.<\/p>\n<p><a href=\"https:\/\/twitter.com\/petersuhm\" rel=\"nofollow noopener\" target=\"_blank\">Peter Suhm<\/a>, the lead developer, describes the plugin functionality as:<\/p>\n<blockquote><p>Pain-free deployment of WordPress themes and plugins directly from Git.<\/p><\/blockquote>\n<p>In other words, the WP Pusher plugin provides developers with one of the possible ways to\u00a0sync WordPress themes and plugins directly from GitHub, Bitbucket or GitLab to the client site. It is just another WordPress plugin which frees you from the hassle of\u00a0copying files over FTP\/SSH. So, in my opinion, it will be unjust if I don&#8217;t say that WP Pusher provides a captivating experience of Git with WordPress.<\/p>\n<h2>Getting Started and Configuration<\/h2>\n<p>Unlike several other WordPress plugins, WP Pusher is not available in the repository. However, the free version can be downloaded from its website.\u00a0Once downloaded and installed, you can start managing all your GitHub hosted projects from one common place i.e. the <strong>dashboard<\/strong>.<\/p>\n<p>I am initially reviewing the free version, so the main settings page inquiring about the license and token details are not much of a concern. However, when one is dealing with private repositories, he&#8217;ll surely fill up these details by accessing the <a href=\"https:\/\/wppusher.com\/\" rel=\"nofollow noopener\" target=\"_blank\">Pro version<\/a>.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-724\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher.jpg\" alt=\"wp pusher plugin\" width=\"600\" height=\"400\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher.jpg 600w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-300x200.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-500x333.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-400x267.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-200x133.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-50x33.jpg 50w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Next, click the sub-menus of &#8220;Install Plugin&#8221; &amp; &#8220;Install Theme&#8221; and start adding your theme and plugin repositories instantly via the main menu for &#8220;WP Pusher&#8221;. The process involves the configuration of a few basic fields like\u00a0paths of your repositories (e.g. GitHub, BitBucket, or GitLab), links to plugin and theme&#8217;s branch or folder, etc. These simple options make\u00a0the plugin lightweight and easy to use.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-725\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-WordPress-Plugin.jpg\" alt=\"wp pusher wordpress\" width=\"600\" height=\"400\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-WordPress-Plugin.jpg 600w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-WordPress-Plugin-300x200.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-WordPress-Plugin-500x333.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-WordPress-Plugin-400x267.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-WordPress-Plugin-200x133.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-WordPress-Plugin-50x33.jpg 50w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<h2>Push-to-Deploy<\/h2>\n<p>One of the key highlights of this plugin is its <em>Push-to-Deploy<\/em> feature. The tiny miny, checkbox which appears on both the install plugin and theme page\u00a0automatically updates your project the very next moment you push your commits to GitHub. This means no fuss of updating and maintaining newer versions manually.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-726\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/push-to-deploy.jpg\" alt=\"push to deploy\" width=\"600\" height=\"400\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/push-to-deploy.jpg 600w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/push-to-deploy-300x200.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/push-to-deploy-500x333.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/push-to-deploy-400x267.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/push-to-deploy-200x133.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/push-to-deploy-50x33.jpg 50w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<h3>Procedure<\/h3>\n<p>The team behind this project developed it as an auto-updater in WordPress which gets synced and start working when you push your changes. Then a series of\u00a0rundown actions starts which begin\u00a0with a POST HTTP request sent via GitHub to the \u201cPush to Deploy URL\u201d. Next, GitHub webhooks assist WP Pusher in updating any plugin or theme repo. To create one such webhook, go to Settings &gt; Webhooks &amp; Services &gt; Add Webhook. \u00a0Paste your Pust-To-Deploy URL here and save the settings.<\/p>\n<h2>Wrapping it up!<\/h2>\n<p>Overall, the plugin seems to be great as it offers possibly the best auto-sync solution between GitHub and WordPress. So, there&#8217;s no point in troubling yourself with the manual handling of client&#8217;s files. I&#8217;ve tried it with a few plugin repositories, and everything worked perfectly well. WP Pusher is available at an affordable price ranging from $39 to $199.<\/p>\n<p>So, what are you waiting for? Grab a license for yourself and make a perfect addition to your developer&#8217;s plugin stack. Have you tried WP Pusher before? Share your experience and views about it. You can post below or reach me out through <a href=\"https:\/\/twitter.com\/MaedahBatool\" rel=\"nofollow noopener\" target=\"_blank\">Twitter<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the right mix of minor to major functionalities, WordPress developers are building products for clients as well as for themselves. The most native procedure is, you develop a theme or a plugin locally and then host it somewhere. GitHub is that somewhere which has become a\u00a0popular choice for most professional developers over the years. [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":728,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":""},"categories":[18],"tags":[],"coauthors":[],"jetpack_featured_media_url":"https:\/\/thedevcouple.com\/wp-content\/uploads\/2016\/06\/WP-Pusher-WordPress.jpg","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/posts\/710"}],"collection":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/comments?post=710"}],"version-history":[{"count":0,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/posts\/710\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/media\/728"}],"wp:attachment":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/media?parent=710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/categories?post=710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/tags?post=710"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/coauthors?post=710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}