Skip to content

Instantly share code, notes, and snippets.

@gregmercer
Created May 9, 2019 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregmercer/ddf38c941a1b4e311b76bf586f24f6a2 to your computer and use it in GitHub Desktop.
Save gregmercer/ddf38c941a1b4e311b76bf586f24f6a2 to your computer and use it in GitHub Desktop.
Lando Drupal 8
Install Lando
On Mac run the following command:
brew cask install lando
Installing Drupal8
0. start with an empty directory
1. lando init
- pick drupal8
- type web for the webroot
- this creates a .lando.yml file
- add xdebug: true to .lando.yml file
config:
xdebug: true
2. lando start
3. lando composer create-project drupal-composer/drupal-project:8.x-dev some-dir --no-interaction
- installs into a directory called some-dir
4. mv some-dir/* .
5. mv some-dir/.* .
6. rm -rf some-dir
7. lando info
- gives you the url of your website
8. open browser to this url
- try out the Demo site (Umami Food Magazine)
- for db questions use: drupal8 for user, drupal8 for password, drupal8 for database
- also during db setup choose advance and type: database as the host
Other lando commands -
lando list
lando ssh
lando stop <name>
lando drush
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment