From 85aeacb6862b2b8ea10527cf275b5bfdea8bcddd Mon Sep 17 00:00:00 2001 From: rdrew Date: Tue, 26 May 2026 14:47:45 -0300 Subject: [PATCH] scripts --- bs.js | 20 ++++++++++---------- deploy.sh | 14 +++++++------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/bs.js b/bs.js index 6417563..8167f76 100755 --- a/bs.js +++ b/bs.js @@ -1,15 +1,15 @@ -var browserSync = require('browser-sync'); +var browserSync = require("browser-sync"); browserSync({ //proxy: 'http://137.149.200.93', - proxy: 'https://islandimagined2.islandarchives.ca', - files: 'css/**/*.css', - plugins: ['bs-rewrite-rules'], - serveStatic: ['.'], + proxy: "https://booklives2.islandarchives.ca", + files: "css/**/*.css", + plugins: ["bs-rewrite-rules"], + serveStatic: ["."], rewriteRules: [ - { - match: /\/themes\/custom\/olivesbooks/g, - replace: '' - } - ] + { + match: /\/themes\/custom\/olivesbooks/g, + replace: "", + }, + ], }); diff --git a/deploy.sh b/deploy.sh index 83e4bea..b767506 100755 --- a/deploy.sh +++ b/deploy.sh @@ -12,17 +12,17 @@ # -------------------------------------------------------- # --- CONFIGURATION (Edit these for new environments) --- -SERVER="newspapers2.islandarchives.ca" -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" +SERVER="booklives2.islandarchives.ca" +THEME_DIR="/var/www/islandarchives2/web/themes/custom/olivesbooks" +SITE_ROOT="/var/www/islandarchives2/web/sites/booklives2.islandarchives.ca" +DRUSH_PATH="/var/www/islandarchives2/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"