Wordpress, Lando, and WPEngine
Creating a new Wordpress x Lando Project
If you'd like to skip setup, you can always clone KalaPress as a starting point.
Get started configuring Wordpress with Lando.
Note: the command in the getting started with Lando guide assumes you are at the root of your project. Create a directory and initialize git first. You will also need a .gitignore.
Setting up a Wordpress x Lando Project Locally
For the most part, setting up a local wordpress instance with lando is as easy as cloning and running lando start
.
Downloading a Database
Oftentimes, pulling a database for your local lando install is important. This can be as easy as running lando pull
on select project but this isn't always an option.
Download the .sql backup from the host. (Ensure it is unzipped)
Backups in WPEngine can be found in the installation you need a backup of under ‘Backup Points’
Search and replace the base url of the instance with your local base url
sed -i 's|https:\/\/wavelengthmusic\.ca|https:\/\/wav-test\.lndo\.site|g' wp_wavelengthto.sql
Note that on Macs you need to add an extension parameter or you get an “invalid command” error. The above line would need to be:
sed -i .sql 's|https:\/\/wavelengthmusic\.ca|https:\/\/wav-test\.lndo\.site|g' wp_wavelengthto.sql
Import with
lando db-import <db.sql>
Deployments
The deployment process for our installs can be found here in the Wiki.