rdrew 3 weeks ago
parent
commit
57aa4305e3
  1. 16
      bs.js
  2. 52
      deploy.sh
  3. 44
      ill.info.yml

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

52
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."

44
ill.info.yml

@ -1,33 +1,33 @@
name: The X
name: Roblib Ill
type: theme
base theme: stable9
description: '<p>A clean, light weight and mobile optimized base theme for Drupal 9, 10 and 11 by <a href="https://drupar.com/" target="_blank">Drupar.com</a><br /><a href="https://drupar.com/theme/ill" target="_blank">Theme Page</a> | <a href="https://drupar.com/doc/ill" target="_blank">Theme User Guide</a> | <a href="https://www.drupal.org/project/ill" target="_blank">Project Page</a></p>'
package: Drupar
description: "D10 theme for roblib ILL"
package: rdrew
core_version_requirement: ^9 || ^10 || ^11
# version: 11.0.0
libraries:
- ill/global-styling
regions:
header_top_left: 'Header Top Left'
header_top_right: 'Header Top Right'
header_top_left: "Header Top Left"
header_top_right: "Header Top Right"
header: Header
primary_menu: 'Primary menu'
search_box: 'Search Box'
page_header: 'Page Header'
primary_menu: "Primary menu"
search_box: "Search Box"
page_header: "Page Header"
highlighted: Highlighted
content: Content
content_top: 'Content Top'
content_bottom: 'Content Bottom'
content_home_top: 'Homepage Content Top'
content_home_bottom: 'Homepage Content Bottom'
sidebar_first: 'Sidebar Left'
sidebar_second: 'Sidebar Right'
footer_top: 'Footer Top'
footer_one: 'Footer First Column'
footer_two: 'Footer Second Column'
footer_three: 'Footer Third Column'
footer_four: 'Footer Fourth Column'
footer_bottom_left: 'Footer Bottom Left'
footer_bottom_right: 'Footer Bottom Right'
footer_bottom_last: 'Footer Bottom Last'
content_top: "Content Top"
content_bottom: "Content Bottom"
content_home_top: "Homepage Content Top"
content_home_bottom: "Homepage Content Bottom"
sidebar_first: "Sidebar Left"
sidebar_second: "Sidebar Right"
footer_top: "Footer Top"
footer_one: "Footer First Column"
footer_two: "Footer Second Column"
footer_three: "Footer Third Column"
footer_four: "Footer Fourth Column"
footer_bottom_left: "Footer Bottom Left"
footer_bottom_right: "Footer Bottom Right"
footer_bottom_last: "Footer Bottom Last"
hidden: Hidden Blocks

Loading…
Cancel
Save