upload -> uploads

This commit is contained in:
rxf
2025-09-22 19:41:40 +02:00
parent 9b7bfcdab1
commit 44ed137551
2 changed files with 10 additions and 9 deletions

View File

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

View File

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