Skip to content

Instantly share code, notes, and snippets.

@borekb
Created January 15, 2019 07:25
Show Gist options
  • Save borekb/671ea713e4cd80888ce0979084725fd1 to your computer and use it in GitHub Desktop.
Save borekb/671ea713e4cd80888ce0979084725fd1 to your computer and use it in GitHub Desktop.
VersionPress on Local by Flywheel

(Note: this is a rough draft of a blog post I'd like to publish to https://versionpress.com/blog.)

Run VersionPress on Local by Flywheel

Local by Flywheel is a great way to run WordPress sites locally. Here is how you can experiment with VersionPress using this tool.

(Note: You'll be able to try change tracking, undo, restore and other features of VersionPress but not its cloning and merging features which require two environments to work with.)

First, create a new site in Local. I'd also recommend enabling HTTPS for good measure (modern browsers will be happier). Local makes this super-easy, just click the Trust button on the SSL tab and update the site's URL (I prefer to do that via WP-CLI, open the SSH session as shown below and execute something like wp search-replace --all-tables http://vp-demo.local https://vp-demo.local).

Next, we need to install Git to the container. Right-click the site name and click Open Site SSH:

image

Enter these commands:

apt-get update
apt-get install git
git --version

Now, grab the latest VersionPress release and install it as a plugin. The activation screen should be happy about all the system requirement checks:

image

Install VersionPress.

Note: you won't be able to try cloning & merging inside Local as it's a single-environment only.

🤔 I'm stuck here. .git was created (git init ran fine), wp-content/vpdb folder exists but the initialization commit was not created. No error was reported. I need to explore this more.

@creatiVision
Copy link

There is a guide:
https://versionpress.com/docs/local-workflows/
i will try then...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment