Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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

This comment has been minimized.

Owner

jmolivas commented Feb 26, 2018

@drugan glad to read is fixed ;)

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