fixes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-09-25 15:32:19 +09:00
parent bd7a481803
commit dd7349bb4c
9 changed files with 646 additions and 80 deletions

View File

@@ -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