mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 14:26:42 +02:00
feat: integrate uload and picture, unify package naming
- Add uload project with apps/web structure
- Reorganize from flat to monorepo structure
- Remove PocketBase binary and local data
- Update to pnpm and @uload/web namespace
- Add picture project to monorepo
- Remove embedded git repository
- Unify all package names to @{project}/{app} schema:
- @maerchenzauber/* (was @storyteller/*)
- @manacore/* (was manacore-*, manacore)
- @manadeck/* (was web, backend, manadeck)
- @memoro/* (was memoro-web, landing, memoro)
- @picture/* (already unified)
- @uload/web
- Add convenient dev scripts for all apps:
- pnpm dev:{project}:web
- pnpm dev:{project}:landing
- pnpm dev:{project}:mobile
- pnpm dev:{project}:backend
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c6c4c5a552
commit
c712a2504a
1031 changed files with 189301 additions and 290 deletions
46
uload/scripts/check-prod-redis.sh
Executable file
46
uload/scripts/check-prod-redis.sh
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "🔍 Checking Redis Cache in Production"
|
||||
echo "======================================"
|
||||
echo ""
|
||||
|
||||
# Your production domain
|
||||
DOMAIN="https://ulo.ad"
|
||||
|
||||
# Test link (create one if needed)
|
||||
TEST_CODE="test-redis-$(date +%s)"
|
||||
TEST_URL="https://example.com/redis-test"
|
||||
|
||||
echo "1. Creating a test link via API..."
|
||||
# You would need to create a test link first via your admin panel or API
|
||||
|
||||
echo ""
|
||||
echo "2. Testing redirect performance..."
|
||||
echo ""
|
||||
|
||||
# First request (should be cache MISS)
|
||||
echo "First request (expected: CACHE MISS):"
|
||||
time curl -I -s -o /dev/null -w "HTTP Status: %{http_code}\nTime: %{time_total}s\nRedirect: %{redirect_url}\n" "$DOMAIN/$TEST_CODE"
|
||||
|
||||
echo ""
|
||||
echo "Waiting 1 second..."
|
||||
sleep 1
|
||||
|
||||
# Second request (should be cache HIT)
|
||||
echo ""
|
||||
echo "Second request (expected: CACHE HIT):"
|
||||
time curl -I -s -o /dev/null -w "HTTP Status: %{http_code}\nTime: %{time_total}s\nRedirect: %{redirect_url}\n" "$DOMAIN/$TEST_CODE"
|
||||
|
||||
echo ""
|
||||
echo "Third request (should be cache HIT):"
|
||||
time curl -I -s -o /dev/null -w "HTTP Status: %{http_code}\nTime: %{time_total}s\nRedirect: %{redirect_url}\n" "$DOMAIN/$TEST_CODE"
|
||||
|
||||
echo ""
|
||||
echo "======================================"
|
||||
echo "✅ If the 2nd and 3rd requests are faster, cache is working!"
|
||||
echo ""
|
||||
echo "Tips for verification:"
|
||||
echo "- Check your server logs for 'Cache HIT!' messages"
|
||||
echo "- First visit should show 'Cache MISS'"
|
||||
echo "- Subsequent visits should show 'Cache HIT!'"
|
||||
echo "- Cache TTL: 5 min (normal) or 24h (popular links)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue