Coder Social home page Coder Social logo

lando-wp-base's Introduction

Working locally with Lando

To get started using Lando to develop locally complete these one-time steps. For further assistance please refer to the Lando documentation.

  • Install Lando, if not already installed.
  • Clone this repository locally.
  • Copy lando_config/default.lando.yml to project root and rename to .lando.yml.
  • Run lando start to start Lando.
    • Save the local site URL. It should be similar to https://<PROJECT_NAME>.lndo.site.
  • Run lando core to download WordPress core files.
  • Run lando set to create a wp-config file.
  • Run lando db-import to import a database.
  • Run lando wp search-replace "<dev_URL>" "<lando_URL>" --url=<lando_URL>. This command replaces the staging/prod URLs with lndo.site URL.

You should now be able to edit your site locally. The steps above do not need to be completed on subsequent starts. You can stop Lando with lando stop and start it again with lando start.

Composer and wp-cli commands should be run in Lando rather than on the host machine. This is done by prefixing the desired command with lando. For example, run lando wp cache flush rather than wp cache flush.

There are two custom Lando commands included in default.lando.yml. In order to use, you will need to uncomment, adjust services, and point each command to the correct theme directory.

  1. lando watch - watches and compiles theme assets.
  2. lando compile - compiles theme assets for deploy.

lando-wp-base's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.