Skip to content

Instantly share code, notes, and snippets.

@jmolivas
Last active September 14, 2019 20:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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}}
@drugan
Copy link

drugan commented Feb 26, 2018

UPDATE: if you have the same error please check whether the sqlite driver is installed for your PHP version:

php -i | grep sqlite

if not, run this:

sudo apt-get install php7.0-sqlite3


Have tried to install the Umami but unfortunately failed. There is what I've got in the end of drupal try:umami:sqlite:

drupal-console-not-installed-umami

Then I cd to the site directory and run this:

class-does-not-exist

It is not clear from the error message what the class does not exist. Was I wrong somewhere?

@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