17 lines
387 B
Bash
Executable File
17 lines
387 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# GNX-WEB Service Restart Script
|
|
|
|
# Colors for output
|
|
GREEN='\033[0;32m'
|
|
NC='\033[0m' # No Color
|
|
|
|
echo -e "${GREEN}Restarting GNX-WEB services...${NC}"
|
|
|
|
# Restart PM2 services
|
|
pm2 restart gnxsoft-backend 2>/dev/null || echo "Backend service not found"
|
|
pm2 restart gnxsoft-frontend 2>/dev/null || echo "Frontend service not found"
|
|
|
|
echo -e "${GREEN}Services restarted${NC}"
|
|
|