From 8cc1580dfaac3c5634a2432514346d362f3e2321 Mon Sep 17 00:00:00 2001 From: Shanmuga Krishnan S M Date: Fri, 7 Aug 2026 14:08:34 +0530 Subject: [PATCH] fix(admin): make /admin a top-level route and add Maven compile to deploy.sh --- EMAIL_AUTOMATION_GUIDE.md | 7 +++++-- src/App.tsx | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/EMAIL_AUTOMATION_GUIDE.md b/EMAIL_AUTOMATION_GUIDE.md index b3efd39..0f77ccc 100644 --- a/EMAIL_AUTOMATION_GUIDE.md +++ b/EMAIL_AUTOMATION_GUIDE.md @@ -43,11 +43,14 @@ If your VPS uses the Webhook endpoint (`http://129.121.126.66:9000/hooks/deploy` ( cd /var/www/freshers-hub - # 1. Pull latest code + # 1. Pull latest code from main git pull origin main - # 2. Rebuild & Restart services + # 2. Rebuild Spring Boot Java Backend & Vite Frontend + cd backend && ./mvnw clean package -DskipTests && cd .. npm run build + + # 3. Restart Microservices systemctl restart springboot chatbot telegram-bot nginx # 3. 📧 Send Email Report Notification (sent AFTER build & restart finish!) diff --git a/src/App.tsx b/src/App.tsx index fff7e8c..ecb6885 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -42,6 +42,9 @@ function App() { + {/* Standalone Admin Route */} + } /> + }> } /> } /> @@ -50,7 +53,6 @@ function App() { } /> } /> } /> - } /> {/* Protected Routes — Require Google Sign-In */}