Modular structure, auto-deploy scripts, and use main branch

This commit is contained in:
Joan
2025-12-31 11:48:42 +01:00
parent 04cd96b1af
commit d183b4e347
3 changed files with 84 additions and 67 deletions

View File

@@ -12,11 +12,11 @@ git fetch origin
# Check if there are updates
LOCAL=$(git rev-parse HEAD)
REMOTE=$(git rev-parse origin/master)
REMOTE=$(git rev-parse origin/main)
if [ "$LOCAL" != "$REMOTE" ]; then
echo "$(date): Updates found, pulling changes..." >> "$LOGFILE"
git pull origin master >> "$LOGFILE" 2>&1
git pull origin main >> "$LOGFILE" 2>&1
# Install any new dependencies
pip3 install -r requirements.txt >> "$LOGFILE" 2>&1