feat(email): enhance email report with live online status, microservices health checks, and site link
Some checks failed
Deploy RIT Freshers Hub to VPS / Deploy to Live VPS (push) Has been cancelled

This commit is contained in:
Shanmuga Krishnan S M
2026-08-07 13:35:52 +05:30
parent 0c380f2caf
commit 332352d789
2 changed files with 46 additions and 14 deletions

View File

@@ -50,14 +50,15 @@ If your VPS uses the Webhook endpoint (`http://129.121.126.66:9000/hooks/deploy`
npm run build
systemctl restart springboot chatbot telegram-bot nginx
# 3. 📧 Send Email Report Notification
# 3. 📧 Send Email Report Notification (sent AFTER build & restart finish!)
python3 /var/www/freshers-hub/scripts/send_git_email.py \
"$(git rev-parse --abbrev-ref HEAD)" \
"$(git log -1 --format='%an <%ae>')" \
"$(git log -1 --format='%h')" \
"$(git log -1 --format='%cd' --date=local)" \
"$(git log -1 --format='%B')" \
"$(git diff-tree --no-commit-id --name-status -r HEAD | head -n 15)"
"$(git diff-tree --no-commit-id --name-status -r HEAD | head -n 15)" \
"SUCCESS (LIVE ONLINE)"
) >> /var/log/deploy.log 2>&1 &