From 660fc8566343d4cbb1e1d6f0e9546ddf6a04c4be Mon Sep 17 00:00:00 2001 From: rdrew Date: Thu, 26 Mar 2026 09:34:23 -0300 Subject: [PATCH] sync test --- deploy.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..62e10c5 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# 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 + +# 2. Local Git workflow +git add --all +git commit -m "$1" +git push # I added this because the server needs something to pull! + +# 3. Remote Server workflow +# This runs the commands on the server and then closes the connection +ssh newspapers2.islandarchives.ca "cd /var/www/islandnewspapers2/web/themes/custom/olivesnews && git pull" + +echo "Done! Deployment successful."