diff --git a/debug-images.sh b/debug-images.sh index 1b8670e..9c1b22e 100755 --- a/debug-images.sh +++ b/debug-images.sh @@ -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 "" diff --git a/setup-development.sh b/setup-development.sh index a0a2264..ffdc3e6 100755 --- a/setup-development.sh +++ b/setup-development.sh @@ -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