Skip to main content

Lando : What, How and why

Lando is for developers who want to easily specify and quickly spin up the services and tools needed to develop their projects. It is a free and open-source local development environment built on Docker container technology.

What makes Lando so great?

1 - Built pn docker(no need to manage local services)
2 - simplifies container management(abstraction layer)
3 - Quick & painless setup
4 - cross-plateform support(mac,window,linux)
5 - single configuration file (that lives in git)
6 - Highly configurable

How to Install the drupal8 recipe and run : 

  • You'll need a Drupal codebase, so go somewhere on your computer and use Git to clone it: git clone --branch 8.6.x https://git.drupal.org/project/drupal.git lando-d8
  • Change into the Drupal directory: cd lando-d8
  • Run lando init, answering drupal8, ., and Lando D8.
  • Run lando start, and wait while all the Docker containers are set up.
  • Run lando composer install (this will use Composer/PHP inside the Docker container to build Drupal's Composer dependencies).
  • Go to the site's URL in your web browser, and complete the Drupal install wizard with these options:
  • Database host: database
  • Database name, username, password: drupal8
We can add the services which is required for the project, like
Apache,php,compose,elastic search,solr,varnish
Redis,Memcached & many more

After add anything in the lando.yml file, You need to run the lando restart to apply the changes

Drupal 10 setup:

Navigate to directory
https://git.drupalcode.org/project/drupal  from this directory use git clone and copy code in local
\

Comments