Skip to content

Instantly share code, notes, and snippets.

@mikeshiyan
Last active August 10, 2022 07:57
Show Gist options
  • Save mikeshiyan/10688db1806bb07a21948ab7ef34ee8f to your computer and use it in GitHub Desktop.
Save mikeshiyan/10688db1806bb07a21948ab7ef34ee8f to your computer and use it in GitHub Desktop.
Quick local drupal/recommended-project with lando
# Composer-generated directories.
/vendor/
/web/core/
/web/libraries/
/web/modules/contrib/
/web/profiles/contrib/
/web/themes/contrib/
/drush/Commands/contrib/
# Scaffold files.
/.editorconfig
/.gitattributes
/web/.csslintrc
/web/.eslintignore
/web/.eslintrc.json
/web/.ht.router.php
/web/.htaccess
/web/autoload.php
/web/example.gitignore
/web/index.php
/web/INSTALL.txt
/web/README.md
/web/robots.txt
/web/update.php
/web/web.config
/web/sites/README.txt
/web/sites/development.services.yml
/web/sites/example.settings.local.php
/web/sites/example.sites.php
/web/sites/default/default.services.yml
/web/sites/default/default.settings.php
/web/modules/README.txt
/web/profiles/README.txt
/web/themes/README.txt
# Configuration files that may contain sensitive information.
/web/sites/*/settings*.php
/web/sites/*/services*.yml
# User-generated content.
/web/sites/*/files/
/web/sites/*/private/
mkdir test
cd test
composer create-project --prefer-dist drupal/recommended-project .
lando init -r drupal8 --src cwd --webroot web --name `basename $PWD` -o drush="*"
lando start
lando drush si --db-url=mysql://drupal8:drupal8@database/drupal8 --site-name=`basename $PWD` -y
lando drush -l https://`basename $PWD`.lndo.site uli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment