fix(admin): make /admin a top-level route and add Maven compile to deploy.sh
Some checks failed
Deploy RIT Freshers Hub to VPS / Deploy to Live VPS (push) Has been cancelled
Some checks failed
Deploy RIT Freshers Hub to VPS / Deploy to Live VPS (push) Has been cancelled
This commit is contained in:
@@ -43,11 +43,14 @@ If your VPS uses the Webhook endpoint (`http://129.121.126.66:9000/hooks/deploy`
|
|||||||
(
|
(
|
||||||
cd /var/www/freshers-hub
|
cd /var/www/freshers-hub
|
||||||
|
|
||||||
# 1. Pull latest code
|
# 1. Pull latest code from main
|
||||||
git pull origin 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
|
npm run build
|
||||||
|
|
||||||
|
# 3. Restart Microservices
|
||||||
systemctl restart springboot chatbot telegram-bot nginx
|
systemctl restart springboot chatbot telegram-bot nginx
|
||||||
|
|
||||||
# 3. 📧 Send Email Report Notification (sent AFTER build & restart finish!)
|
# 3. 📧 Send Email Report Notification (sent AFTER build & restart finish!)
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ function App() {
|
|||||||
<AuthProvider>
|
<AuthProvider>
|
||||||
<ScrollToTop />
|
<ScrollToTop />
|
||||||
<Routes>
|
<Routes>
|
||||||
|
{/* Standalone Admin Route */}
|
||||||
|
<Route path="/admin" element={<AdminDashboard />} />
|
||||||
|
|
||||||
<Route element={<MainLayout />}>
|
<Route element={<MainLayout />}>
|
||||||
<Route path="/" element={<Home />} />
|
<Route path="/" element={<Home />} />
|
||||||
<Route path="/notes" element={<Notes />} />
|
<Route path="/notes" element={<Notes />} />
|
||||||
@@ -50,7 +53,6 @@ function App() {
|
|||||||
<Route path="/bus-routes" element={<BusRoutes />} />
|
<Route path="/bus-routes" element={<BusRoutes />} />
|
||||||
<Route path="/faculty" element={<Faculty />} />
|
<Route path="/faculty" element={<Faculty />} />
|
||||||
<Route path="/events" element={<Events />} />
|
<Route path="/events" element={<Events />} />
|
||||||
<Route path="/admin" element={<AdminDashboard />} />
|
|
||||||
|
|
||||||
{/* Protected Routes — Require Google Sign-In */}
|
{/* Protected Routes — Require Google Sign-In */}
|
||||||
<Route
|
<Route
|
||||||
|
|||||||
Reference in New Issue
Block a user