瀏覽代碼

added deploys script

Bachir Soussi Chiadmi 3 年之前
父節點
當前提交
5dd384f1b6
共有 1 個文件被更改,包括 25 次插入0 次删除
  1. 25 0
      deploy.sh

+ 25 - 0
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."