Add install script
This commit is contained in:
parent
8623b98a0b
commit
7938b6a40c
3 changed files with 26 additions and 1 deletions
12
scripts/development/common.sh
Normal file
12
scripts/development/common.sh
Normal 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
11
scripts/development/install.sh
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue