Skip to content

Instantly share code, notes, and snippets.

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 DavMorr/4a4e5cb9ad8fc7e7570177a8647f3c83 to your computer and use it in GitHub Desktop.
Save DavMorr/4a4e5cb9ad8fc7e7570177a8647f3c83 to your computer and use it in GitHub Desktop.
Drupal 8 - download and install instructions - Lando version
References:
* https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies
Navigate to the new site’s grandparent directory, ex:
$ cd ~/Sites/drupal
Download the site files to the new site dir with Composer:
$ composer create-project drupal/recommended-project [site_name]
# assume site name ‘[site_name]’ for this example.
$ cd [site_name]
Initialize Lando
$ vim .lando.yml
[start config to copy & insert]
name: [site_name]
recipe: drupal8
config:
webroot: web
php: '7.2'
# via: apache:2.4
via: nginx
database: mysql:5.7
drush: ^8
xdebug: false
config:
php: '.lando/php.ini'
services:
appserver:
build:
- composer install
[end config to copy & insert]
Create placeholder config files
$ mkdir .lando
$ touch .lando/php.ini
Provision and startup the initial Lando container
$ lando start
BOOMSHAKALAKA!!!
Your app has started up correctly.
Here are some vitals:
NAME sitename
LOCATION /Users/home/Sites/drupal/[site_name]
SERVICES appserver_nginx, appserver, database
APPSERVER_NGINX URLS https://localhost:32878
http://localhost:32879
http://[site_name].lndo.site:8000
https://[site_name].lndo.site
Set up the site in a browser (drush site:install doesn’t work out of the box with Lando, prolly because of the non-standard default database credentials/config/whatever).
https://davidmorrison.net.lndo.site/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment