From b3ef58a883d3b8aacb49555cb64ba08ab631d385 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 5 Sep 2022 13:37:15 +0200 Subject: [PATCH] added git module & ignore, added deploy.sh --- .gitignore | 1 + .gitmodules | 3 +++ deploy.sh | 26 ++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100755 deploy.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c39c4dd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +\.vscode/* diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5a4c2b5 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/web/profiles/d8-starterkit-profile"] + path = src/web/profiles/d8-starterkit-profile + url = https://figureslibres.io/gogs/bachir/d8-starterkit-profile.git diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..a1cabb2 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +echo "updating drupal 9" +echo "Switching to project docroot." +cd ./src +echo "" +echo "Pulling down latest code." +git pull --ff-only origin prod +git submodule update --recursive --checkout +echo "" +echo "Clearing drush caches." +drush cache-clear drush +echo "" +echo "Composer install." +composer install --no-dev +echo "" +echo "Running database updates." +drush updb -y +echo "" +echo "Importing configuration." +drush config-import -y +echo "" +echo "Clearing caches." +drush cr +echo "" +echo "Deployment complete."