Modular structure, auto-deploy scripts, and use main branch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user