Browse Source

scripts

master
rdrew 3 weeks ago
parent
commit
85aeacb686
  1. 20
      bs.js
  2. 14
      deploy.sh

20
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: "",
},
],
});

14
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"

Loading…
Cancel
Save