Kickassd – The Web Hosting Blog
  • Home
  • SSD Web Hosting
  • Home
  • Hosting Plans
  • About Us
  • Support
  • Client Area
  • Affiliates
  • Blog

Easy Wordpress Staging With VersionPress

Wordpress Guides > Easy WordPress Staging With VersionPress

Easy WordPress Staging With VersionPress

Jan 13, 2017Ben WadeWordpress Guides4 Comments

 

We recently changed the way you access GIT on all of our servers and have also now added wp-cli to all of our servers which makes it easy to setup WordPress Staging and recovery for your WordPress site. To set this up we will use VersionPress which is really an amazing plugin that is extremely well done and efficient.

 

Install VersionPress For Easy WordPress Staging

Unfortunately downloading and extracting through SSH does not create a clean install as some symbolic linking fails. Installing through WordPress admin remedies this so go ahead and download VersionPress than upload, install, and activate.

You should see it activate successfully. Now in your WordPress admin you will see:

 

 

Go ahead and activate it. If it complains about GIT version there are 2 options to fix it.

  1.  Change GIT Version With Alias
  2. Add the following to your to your wp-config.php:

define('VP_GIT_BINARY', '/usr/local/cpanel/3rdparty/bin/git');

I will use option #2.

nano /public_html/wp/wp-config.php

 

Now you should be able to proceed with activation after refreshing the page in your WordPress admin area.

 

Create  A Staging Site

 

Make sure you are in your site directory and issue the command:

wp vp clone --name=staging

 

You now have a staging site called “staging”.

 

This creates a full clone including all files, a database, and makes the needed changes to wp-config.php.

 

Let’s Have Some Fun!

 

Now to test things out change the theme on your staging site, and create a few posts and or pages on the “live” environment. When ready issue the command:

wp vp pull --from=staging

 

VersionPress will compare the changes and merge them properly on your live environment, how slick is that. If by chance something does go wrong you can instantly RollBack individual changes or do a complete RollBack to the point before you merged. Such an amazing way to setup a staging environment, and I have just barely touched the surface of what is possible with the combination of VersionPress, wp-cli, and GIT.

 

Keep in mind that VersionPress is still in development so always have your backups handy just in case (should you forget we have your back), though in my testing it has done its job extremely well and the only real thing I see lacking right now is plugin support. But this is something being worked on by the VP developers and it is expected to have extensive coverage of plugins by end of 2017.

 

Try this out on our premium Managed WordPress Hosting!

Tags: git,  staging,  versionpress,  wordpress,  wp-cli

Written by Ben Wade

Related Posts

Easy WordPress Staging With VersionPress (4)

  1. Mark January 13, 2017 at 6:24 pm

    Does this works in WP network multisite? And if we want to clone to a diferent server?

    Reply ↓
    • Chuck January 13, 2017 at 6:32 pm

      Hi Mark,

      There is no multisite support yet but it is on the Roadmap.

      For remote cloning, merging, etc it is not available out of the box, but from what I hear they are close to releasing something for this in an upcoming version. It can be done now but requires some work and manual setup:

      https://blog.versionpress.net/2016/11/remote-workflows/

      Reply ↓
    • Robert February 28, 2017 at 2:18 pm

      As long as you always “pull” to a server (use: wp vp pull –from=), the sites can be setup anywhere. If you “push”, you will have to run the “wp vp apply-changes” command manually on the remote server or setup a post-receive hook to do it automatically.

      Reply ↓
      • Chuck February 28, 2017 at 2:27 pm

        That’s great, thanks for the info Robert!

        Reply ↓

Leave a Reply

Cancel reply

Your email address will not be published. Required fields are marked *

← Kickassd Interview With WHSR
Kickassd Elastic Sites | The Future Is Here →

Find It

Twitter With Us

  • Hey All! Here's a new update of what's been going on at https://t.co/Eo2E35TaqS ! https://t.co/n3iekzlRXn - over a year ago
  • Checkout this WordPress site on our SSD Elastic hosting. 100/100 on Insights! https://t.co/VkOG1TsUZ9 - over a year ago
  • We have been quiet as of late, but busy :) A few updates on what we have been doing (TLS 1.3 for example) and what… https://t.co/XCsTmIGtVv - over a year ago
  • Updated Terms of Service and Privacy Policy: Kickassd is still fully GDPR-compliant! https://t.co/Jk4mO9Xvfd #gdpr #kickassd - over a year ago
  • @BitClude Hands down #Vertcoin - over a year ago

Categories

How can we help today?

  • Buy A Domain »

  • Order Hosting »

  • Make Payment »

  • Get Support »

Contact Us!

sales@kickassd.com
http://kickassd.com

Support

  • Contact Form
  • Submit Ticket
  • Knowledgebase
  • Terms of Service
  • Privacy policy

Domains

  • Register Domain
  • Transfer Domain
  • WHOIS Search

Affiliates

  • Become An Affiliate
  • Affiliate Portal
  • Affiliate Terms

Company

  • About Us
  • Why Choose Us
  • Testimonials
  • Blog
  • Server Status

Copyright © 2016 Kickassd Inc.
All rights reserved