Add install script
This commit is contained in:
parent
8623b98a0b
commit
7938b6a40c
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,4 +1,6 @@
|
||||||
*
|
*
|
||||||
!/*/
|
!*/
|
||||||
|
!/.gitignore
|
||||||
|
!/scripts/**
|
||||||
!/web/sites/default/environments/settings.*.php
|
!/web/sites/default/environments/settings.*.php
|
||||||
!/web/sites/default/settings.php
|
!/web/sites/default/settings.php
|
||||||
|
|
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…
Reference in a new issue