Add install script

This commit is contained in:
Oliver Davies 2020-04-10 09:57:54 +01:00
parent 8623b98a0b
commit 7938b6a40c
3 changed files with 26 additions and 1 deletions

4
.gitignore vendored
View file

@ -1,4 +1,6 @@
*
!/*/
!*/
!/.gitignore
!/scripts/**
!/web/sites/default/environments/settings.*.php
!/web/sites/default/settings.php

View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
function run_command {
title=$1
command=$2
echo -e "\e[32m$title\e[0m"
echo -e "\e[33mExecuting: \e[0m$command"
$command
}

11
scripts/development/install.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
. $(dirname "$0")/common.sh
run_command "Install Composer dependencies" "symfony composer install"
cd web
run_command "Install Drupal" "symfony php ../vendor/bin/drush site-install -y --existing-config"