|
|
|
|
@ -12,7 +12,8 @@
|
|
|
|
|
# -------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
# --- CONFIGURATION (Edit these for new environments) --- |
|
|
|
|
SERVER="newspapers2.islandarchives.ca" |
|
|
|
|
# SERVER="newspapers2.islandarchives.ca" |
|
|
|
|
SERVER="137.149.52.48" |
|
|
|
|
THEME_DIR="/var/www/islandnewspapers2/web/themes/custom/olivesnews" |
|
|
|
|
SITE_ROOT="/var/www/islandnewspapers2/web/sites/islandnewspapers2" |
|
|
|
|
DRUSH_PATH="/var/www/islandnewspapers2/vendor/drush/drush/drush" |
|
|
|
|
@ -20,9 +21,9 @@ DRUSH_PATH="/var/www/islandnewspapers2/vendor/drush/drush/drush"
|
|
|
|
|
|
|
|
|
|
# 1. Check if a commit message was provided |
|
|
|
|
if [ -z "$1" ]; then |
|
|
|
|
echo "❌ Error: Please provide a commit message." |
|
|
|
|
echo "Usage: ./deploy.sh 'Your message here'" |
|
|
|
|
exit 1 |
|
|
|
|
echo "❌ Error: Please provide a commit message." |
|
|
|
|
echo "Usage: ./deploy.sh 'Your message here'" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
COMMIT_MSG="$1" |
|
|
|
|
|