Browse Source

scripts

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

16
bs.js

@ -1,15 +1,15 @@
var browserSync = require('browser-sync'); var browserSync = require("browser-sync");
browserSync({ browserSync({
//proxy: 'http://137.149.200.93', //proxy: 'http://137.149.200.93',
proxy: 'https://islandimagined2.islandarchives.ca', proxy: "https://booklives2.islandarchives.ca",
files: 'css/**/*.css', files: "css/**/*.css",
plugins: ['bs-rewrite-rules'], plugins: ["bs-rewrite-rules"],
serveStatic: ['.'], serveStatic: ["."],
rewriteRules: [ rewriteRules: [
{ {
match: /\/themes\/custom\/olivesbooks/g, match: /\/themes\/custom\/olivesbooks/g,
replace: '' replace: "",
} },
] ],
}); });

8
deploy.sh

@ -12,10 +12,10 @@
# -------------------------------------------------------- # --------------------------------------------------------
# --- CONFIGURATION (Edit these for new environments) --- # --- CONFIGURATION (Edit these for new environments) ---
SERVER="newspapers2.islandarchives.ca" SERVER="booklives2.islandarchives.ca"
THEME_DIR="/var/www/islandnewspapers2/web/themes/custom/olivesnews" THEME_DIR="/var/www/islandarchives2/web/themes/custom/olivesbooks"
SITE_ROOT="/var/www/islandnewspapers2/web/sites/islandnewspapers2" SITE_ROOT="/var/www/islandarchives2/web/sites/booklives2.islandarchives.ca"
DRUSH_PATH="/var/www/islandnewspapers2/vendor/drush/drush/drush" DRUSH_PATH="/var/www/islandarchives2/vendor/drush/drush/drush"
# -------------------------------------------------------- # --------------------------------------------------------
# 1. Check if a commit message was provided # 1. Check if a commit message was provided

Loading…
Cancel
Save