Last active
September 14, 2019 20:19
-
-
Save jmolivas/8bc5ab0c504c804451d3c5a9dc56a303 to your computer and use it in GitHub Desktop.
Drupal 8.5 umami installation using DrupalConsole
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
# 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}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
:Then I
cd
to the site directory and run this:It is not clear from the error message what the class does not exist. Was I wrong somewhere?