Files
orangecat/scripts/dev/check-watcher-limits.sh
T
Your Name 1b2a2371e9 refactor: Complete codebase improvements per engineering principles
- Fix currency defaults (SATS → CHF) across forms, configs, and API routes
- Remove @ts-nocheck from socialService.ts and improve type safety
- Replace console.log statements with proper logger utility in production code
- Additional type safety improvements and code quality enhancements
- Documentation updates for improved maintainability

All changes follow DRY, SSOT, and separation of concerns principles.
2026-01-04 12:25:26 +01:00

46 lines
960 B
Bash
Executable File

#!/bin/bash
# Check and display file watcher limits
echo "📊 File Watcher System Limits:"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Current ulimit (file descriptors): $(ulimit -n)"
echo "System max files: $(cat /proc/sys/fs/file-max 2>/dev/null || echo 'N/A')"
echo ""
echo "📁 Project Directory:"
echo " $(pwd)"
echo ""
echo "✅ Watchman Config:"
if [ -f .watchmanconfig ]; then
echo " Found .watchmanconfig"
cat .watchmanconfig | head -5
else
echo " No .watchmanconfig found"
fi
echo ""
echo "🔧 Next.js Watch Options:"
echo " Configured in next.config.js to limit watching to project directory only"
echo ""
echo "💡 If you still see EMFILE errors:"
echo " 1. Make sure you're running from the project root"
echo " 2. Check that .watchmanconfig is properly configured"
echo " 3. Restart the dev server after changes"