mesela yani
This commit is contained in:
@@ -42,6 +42,14 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# Ensure frontend build exists before starting server
|
||||
FRONTEND_INDEX="src/public/dist/index.html"
|
||||
if [ ! -f "$FRONTEND_INDEX" ]; then
|
||||
echo "❌ Frontend build not found at $FRONTEND_INDEX"
|
||||
echo "ℹ️ Please run 'npm run build' in the frontend (or rebuild the Docker image) so the dist assets are available."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Start the application
|
||||
echo "✨ Starting server..."
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user