Skip to content

Instantly share code, notes, and snippets.

@jmolivas
Last active September 14, 2019 20:19
Show Gist options
  • Save jmolivas/8bc5ab0c504c804451d3c5a9dc56a303 to your computer and use it in GitHub Desktop.
Save jmolivas/8bc5ab0c504c804451d3c5a9dc56a303 to your computer and use it in GitHub Desktop.
Drupal 8.5 umami installation using DrupalConsole
# Requires
# - DrupalConsole Launcher
# - Git
# - Composer
# - Sqlite
#
# How to use:
# copy the content of this gist to a new file name it as ~/.console/chain/try-umami-sqlite.yml
#
# Execution:
# drupal try:umami:sqlite --directory=/path/to/install/umami/
#
# NOTE: Use a full path for directory. Relative paths and `~` character are not allowed.
#
command:
name: try:umami:sqlite
description: 'Download Drupal 8.5.x and install umami profile using sqlite'
commands:
# Clone Drupal 8.5.x
- command: exec
arguments:
bin: git clone --branch 8.5.x https://git.drupal.org/project/drupal.git {{ directory }}
# Download Drupal Console
- command: exec
arguments:
bin: composer require drupal/console:~1.0 --working-dir={{ directory }}
# Install Drupal
- command: exec
arguments:
bin: drupal site:install demo_umami --root={{directory}} --db-type="sqlite" --no-interaction
# Start PHP built-in server
- command: exec
arguments:
bin: drupal server --root={{directory}}
@jmolivas
Copy link
Author

@drugan glad to read is fixed ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment