(Note: this is a rough draft of a blog post I'd like to publish to https://versionpress.com/blog.)
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:
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:
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.
There is a guide:
https://versionpress.com/docs/local-workflows/
i will try then...