fix images
This commit is contained in:
19
deploy.sh
19
deploy.sh
@@ -55,6 +55,25 @@ if [ $RETRY_COUNT -eq $MAX_RETRIES ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Apply database migrations
|
||||
echo -e "${YELLOW}🗄️ Applying database migrations...${NC}"
|
||||
if [ -f "backend/create_backup_jobs_table.sql" ]; then
|
||||
echo "Applying backup_jobs table migration..."
|
||||
|
||||
# Get list of databases
|
||||
DATABASES=$(docker-compose exec -T postgres psql -U storycove -lqt | cut -d \| -f 1 | grep -E '^ storycove' | sed 's/^[ \t]*//')
|
||||
|
||||
# Apply migration to each database
|
||||
for DB_NAME in $DATABASES; do
|
||||
echo " - Applying to database: $DB_NAME"
|
||||
docker-compose exec -T postgres psql -U storycove -d "$DB_NAME" < backend/create_backup_jobs_table.sql 2>&1 | grep -E "(CREATE|ERROR)" || true
|
||||
done
|
||||
|
||||
echo -e "${GREEN}✅ Database migrations applied${NC}"
|
||||
else
|
||||
echo -e "${YELLOW}⚠️ No migration files found, skipping...${NC}"
|
||||
fi
|
||||
|
||||
# Check if Solr is ready
|
||||
echo -e "${YELLOW}🔍 Checking Solr health...${NC}"
|
||||
RETRY_COUNT=0
|
||||
|
||||
Reference in New Issue
Block a user