Created
December 10, 2021 15:20
-
-
Save radimklaska/dd1f2ce1efff9781bb1d44f264ba4426 to your computer and use it in GitHub Desktop.
Lando quick sandbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
runtime=$(LANG=en_us_88591; date +"%Y-%m-%d-%A-%H-%M-%S") | |
# all lowercase | |
runtime=sandbox-${runtime,,} | |
mkdir $runtime | |
cd $runtime | |
lando init --source cwd --recipe drupal9 --webroot web --name $runtime --yes | |
lando start | |
# Needs empty folder and we have .lando.yml already, use build folder. | |
lando composer create-project drupal/recommended-project build | |
(shopt -s dotglob; mv ./build/* ./) | |
rm -r build | |
lando composer require drush/drush drupal/devel | |
lando drush site:install --db-url="mysql://drupal9:drupal9@database:3306/drupal9" --account-pass="admin" --yes | |
lando drush uli --uri=http://$runtime.lndo.site/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment