This commit is contained in:
@@ -55,12 +55,11 @@ sleep 10
|
||||
|
||||
# Test PostgreSQL connection
|
||||
echo -e "${YELLOW}🔌 Testing PostgreSQL connection (192.168.0.102:5432)...${NC}"
|
||||
if pg_isready -h 192.168.0.102 -p 5432; then
|
||||
if pg_isready -h 192.168.0.102 -p 5432 -U admin; then
|
||||
echo -e "${GREEN}✅ PostgreSQL connection successful!${NC}"
|
||||
else
|
||||
echo -e "${RED}❌ Cannot connect to PostgreSQL. Please check that the server is running.${NC}"
|
||||
echo -e "${RED}❌ Aborting startup.${NC}"
|
||||
exit 1
|
||||
echo -e "${YELLOW}⚠️ Cannot connect to PostgreSQL. Continuing anyway...${NC}"
|
||||
echo -e "${YELLOW}⚠️ Some features may not work correctly.${NC}"
|
||||
fi
|
||||
|
||||
# Run database migrations
|
||||
|
||||
Reference in New Issue
Block a user