Skip to content

builtnorth/wp-lando

Repository files navigation

WordPress Lando

Quick development environment for WordPress using Lando.

Features

  • 🐳 Containerized development with Lando
  • 🔒 Secure configuration with env vars
  • 📦 Composer-based WordPress management
  • 🛠️ Modern tools (WP-CLI, PHP 8.2, Nginx)
  • 📧 MailHog for email testing
  • 📊 PHPMyAdmin included
  • 🔄 Auto database backups on shutdown

Install

  1. Install required tools:

  2. Clone and setup:

git clone https://github.com/builtnorth/wp-lando.git
cd wp-lando
  1. Run setup script:

    • ./bin/setup.sh
    • Follow prompts to enter site name, username, password, and email
  2. Site is ready.

Structure

wp-lando/
├── wp/                  # WordPress core
├── wp-content/          # Themes, plugins, uploads
├── wp-config/           # WP configuration (production, staging, development)
├── config/              # Server config
├── bin/                # Scripts
├── .env                # Environment variables
└── .lando.yml          # Lando config

Commands

  • lando start - Start environment
  • lando stop - Stop environment
  • lando wp - WP-CLI commands
  • lando composer - Composer commands
  • lando npm - NPM commands

URLs

Config

Environment Variables

Required in .env:

WP_ENV=development
WP_HOME=https://wp-lando.lndo.site
DB_NAME=wordpress
DB_USER=wordpress
DB_PASSWORD=wordpress

WordPress Config

Environment configs live in wp-config/. Simliar to roots/bedrock, application.php contains the main config with the ability for staging.php and development.php to override environment specific settings.

About

Base WordPress setup on Lando

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published