Skip to content

kburakozdemir/lando-drupal10-recipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Start for Drupal 10 and Lando

All of the bash commands in this document must be run in repo root.

After cloning the repo, you're free to delete the .git directory.

rm -rf ./.git/

Prepare Code base

lando start

After starting Lando, you will see the URLs. Please do not visit them at this moment.

URLs

Continue running the command below:

lando composer create-project drupal/recommended-project /app/temp --no-install

rsync -rtv --remove-source-files ./temp/ ./drupal/

find ./temp -type d -empty -delete # or run `rm -rf ./temp/`

rm ./drupal/web/.gitkeep

lando composer install # do not forget to confirm plugins when prompted

Install drush

lando composer require "drush/drush"

# Test drush
lando drush --version

Install Site

Manual Installation via Browser

You can now visit the URLs mentioned above and perform an installation via browser:

Drupal Installation

Automated Installation via drush

Standard Drupal Installation

This will perform a standard Drupal installation:

# Ref: https://drushcommands.com/drush-9x/site/site:install/
# drush si --db-url=mysql://root:pass@localhost:port/dbname
lando drush site-install \
  standard \
  --site-name='Drupal using Lando' \
  --locale=en \
  --db-url=mysql://drupal10:drupal10@database:3306/drupal10 \
  --account-name=admin \
  --account-pass=admin \
  --yes

Standard Drupal Installation in Another Language

If you want to perform a standard Drupal installation with a different language, change the locale option (in this example tr (Turkish) is used):

# Ref: https://drushcommands.com/drush-9x/site/site:install/
# drush si --db-url=mysql://root:pass@localhost:port/dbname
lando drush site-install \
  standard \
  --site-name='Drupal using Lando' \
  --locale=tr \
  --db-url=mysql://drupal10:drupal10@database:3306/drupal10 \
  --account-name=admin \
  --account-pass=admin \
  --yes

Install Umami Demo Profile

This is a multi-lingual Drupal demo containing realistic content:

# Ref: https://drushcommands.com/drush-9x/site/site:install/
# drush si --db-url=mysql://root:pass@localhost:port/dbname
lando drush site-install \
  demo_umami \
  --site-name='Umami Food Magazine' \
  --db-url=mysql://drupal10:drupal10@database:3306/drupal10 \
  --account-name=admin \
  --account-pass=admin \
  --yes

Admin Interface

Visit https://dev-drupal10.lndo.site/user/login.

If 'Automated Installation via drush' is used for installation, use admin for both username and password.

Environment Information

The operating system and other software used are as follows:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

lando version
v3.11.0

sudo apt-cache policy docker-ce
docker-ce:
  Installed: 5:20.10.19~3-0~ubuntu-jammy

docker-compose --version
docker-compose version 1.29.2, build unknown

About

Quick Start for Drupal 10 and Lando

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published