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