From 5dd384f1b6476a0cee116c5d65ed5f945e12e3c9 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Mon, 14 Dec 2020 11:09:25 +0100 Subject: [PATCH] added deploys script --- deploy.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..ff69f4b --- /dev/null +++ b/deploy.sh @@ -0,0 +1,25 @@ +#!/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 +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."