diff --git a/.gitignore b/.gitignore index 1788a05..078a60a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ * -!/*/ +!*/ +!/.gitignore +!/scripts/** !/web/sites/default/environments/settings.*.php !/web/sites/default/settings.php diff --git a/scripts/development/common.sh b/scripts/development/common.sh new file mode 100644 index 0000000..4f5ba0b --- /dev/null +++ b/scripts/development/common.sh @@ -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 +} diff --git a/scripts/development/install.sh b/scripts/development/install.sh new file mode 100755 index 0000000..88f03f7 --- /dev/null +++ b/scripts/development/install.sh @@ -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"