Merge branch 'komplett-auf-nodejs-umgestellt' of https://gitea.fuerst-stuttgart.de/admin/Rezepte_Klaus into komplett-auf-nodejs-umgestellt

This commit is contained in:
2025-09-23 11:56:58 +00:00
2 changed files with 10 additions and 9 deletions

View File

@@ -34,16 +34,16 @@ echo ""
echo "🖼️ Testing Image Serving:"
echo "Checking upload directory structure..."
# Check if upload directory exists
if [ -d "./upload" ]; then
echo "✅ Upload directory found:"
ls -la ./upload/ | head -10
# Check if uploads directory exists
if [ -d "./uploads" ]; then
echo "✅ Uploads directory found:"
ls -la ./uploads/ | head -10
# Find a test image
TEST_IMAGE=$(find ./upload -name "*.jpg" | head -1)
TEST_IMAGE=$(find ./uploads -name "*.jpg" | head -1)
if [ -n "$TEST_IMAGE" ]; then
# Remove ./upload/ prefix for API path
RELATIVE_PATH=${TEST_IMAGE#./upload/}
# Remove ./uploads/ prefix for API path
RELATIVE_PATH=${TEST_IMAGE#./uploads/}
echo ""
echo "🧪 Testing image URL: $RELATIVE_PATH"
echo "Full URL: http://$HOST_IP:3001/api/images/serve/$RELATIVE_PATH"
@@ -63,7 +63,8 @@ if [ -d "./upload" ]; then
echo "❌ No JPG images found in upload directory"
fi
else
echo "❌ Upload directory not found"
echo "❌ Uploads directory not found. Directory contents:"
ls -la ./ | grep -E "(upload|Rezepte)"
fi
echo ""

View File

@@ -127,7 +127,7 @@ services:
volumes:
- uploads_dev_data:/app/uploads
# Mount existing uploads from host for development
- ./upload:/app/uploads:ro
- ./uploads:/app/uploads:ro
# Development: Mount source code for hot reload
- ./nodejs-version/backend/src:/app/src:ro
- ./nodejs-version/backend/prisma:/app/prisma:ro