diff --git a/bs.js b/bs.js new file mode 100755 index 0000000..50eacfb --- /dev/null +++ b/bs.js @@ -0,0 +1,16 @@ +var browserSync = require("browser-sync"); + +browserSync({ + //proxy: 'http://137.149.200.93', + proxy: "https://newspapers2.islandarchives.ca", + // files: "css/**/*.css", + files: ["css/**/*.css", "js/**/*.js"], + plugins: ["bs-rewrite-rules"], + serveStatic: ["."], + rewriteRules: [ + { + match: /\/themes\/custom\/olivesnews/g, + replace: "", + }, + ], +}); diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..83e4bea --- /dev/null +++ b/deploy.sh @@ -0,0 +1,52 @@ +#!/bin/bash + +#====NEED TO AUTOMATE AUTH IN ADVANCE: +#(check for and create if missing on server) +#mkdir -p ~/.ssh +#chmod 700 ~/.ssh +#touch ~/.ssh/authorized_keys +#chmod 600 ~/.ssh/authorized_keys +#(run these on local) +#ssh-keygen -t ed25519 +#ssh-copy-id rdrew@newspapers2.islandarchives.ca +# -------------------------------------------------------- + +# --- 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" +# -------------------------------------------------------- + +# 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 +fi + +COMMIT_MSG="$1" + +echo "๐ Starting deployment workflow..." + +# 2. Local Git workflow +echo "๐ฆ Committing and pushing local changes..." +git add --all +git commit -m "$COMMIT_MSG" +git push + +# 3. Remote Server workflow +echo "๐ Connecting to $SERVER..." + +# We wrap the remote commands in a single string for SSH +# The '&&' ensures that if one step fails, the script stops immediately. +ssh "$SERVER" " + echo '๐ฅ Pulling code into theme folder...' && \ + cd $THEME_DIR && \ + git pull && \ + echo '๐งน Rebuilding Drupal cache...' && \ + cd $SITE_ROOT && \ + $DRUSH_PATH cr +" + +echo "โ Done! Deployment successful." diff --git a/ill.info.yml b/ill.info.yml index 770be06..db6e8e3 100644 --- a/ill.info.yml +++ b/ill.info.yml @@ -1,33 +1,33 @@ -name: The X +name: Roblib Ill type: theme base theme: stable9 -description: '
A clean, light weight and mobile optimized base theme for Drupal 9, 10 and 11 by Drupar.com
Theme Page | Theme User Guide | Project Page