Files
evig/docs/guides/migration.md
894b203602 docs: sync docs with actual stack (#447)
Docs truth-sweep against ground truth (package.json, CI workflows):
- npm → pnpm across evergreen docs (pnpm 11.25.0 is the package manager;
  npx tsx → pnpm exec tsx, npx ts-prune/jscpd → pnpm dlx, npm ci →
  pnpm install --frozen-lockfile, package-lock.json → pnpm-lock.yaml)
- Jest → Vitest in README, CONTRIBUTING, COMMANDS (vitest 4 is installed)
- Node claims: README 20+ → 22.13+ (engines) with CI/deploy on 24;
  deployment.md "Setup Node 20 (npm cache)" → Node 24 (pnpm cache), and
  the pipeline line now shows `pnpm run verify` as CI actually runs
- TypeScript 5.x claims → 6 (typescript ^6.0.3); Next.js 14 → 16 in
  BLOG_SYSTEM, guides/ARCHITECTURE, AI_BOT_SYSTEM_PROMPT
- COMMANDS.md: dropped nonexistent `dev:cms` script; services list fixed
  to db/meilisearch/listmonk (no redis in compose)
- HR_RUNBOOK: `npm run test -- src/…` → `pnpm run test src/…` (pnpm
  passes args without the `--` separator)

Historical records (docs/archive/**, dated audit reports, UPGRADE_PLAN)
left as-is — they describe what was true when written.


Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 15:01:39 +00:00

4.1 KiB

🚀 RevampIT Content Management Migration Guide

📊 Docker & Best Practices Assessment

✅ What Was Fixed:

  • Multi-stage Docker builds for smaller images and better caching
  • Health checks for all services
  • Proper networking with dedicated subnets
  • Security improvements (non-root users, minimal permissions)
  • Environment variable management with templates
  • Volume management with proper drivers

✅ Content Management Migration:

1. Start the Improved System

# 1. Update your .env file (copy from env-template.txt)
cp env-template.txt .env
# Edit .env with your secure passwords

# 2. Start services with health checks
docker-compose up -d

# 3. Check status
docker-compose ps

2. Migrate About Page Content

# 1. Open Strapi Admin
open http://localhost:1337/admin

# 2. Create Super Admin user (first time only)

# 3. Go to Content Manager → Static Pages → Add new entry

# 4. Fill in the form:
# - Title: "Über uns - Technik ein zweites Leben geben"
# - Page Key: "about" (important!)
# - Page Type: "about"
# - SEO Title: "Über uns - RevampIT"
# - SEO Description: [copy from existing]
# - Show in Navigation: ✅ Yes

# 5. Add sections using the Dynamic Zone:
# - Hero Section
# - Text with Image
# - Impact Section
# - Stats Section
# - CTA Section

# 6. Copy content from your hardcoded-about-content.tsx

Option B: Use Migration Script

# Run the migration helper
node migrate-about-content.js

# Then manually add the content to Strapi

3. Test the Migration

# 1. Start Next.js development server
pnpm run dev

# 2. Visit About page
open http://localhost:3000/about

# 3. Content should now load from Strapi!
# 4. Try editing content in Strapi - changes appear immediately

📈 Best Practices Compliance

Docker Best Practices: 🟢 EXCELLENT

  • ✅ Multi-stage builds
  • ✅ Health checks
  • ✅ Proper networking
  • ✅ Volume management
  • ✅ Security (non-root users)
  • ✅ Environment management

Content Management: 🟢 EXCELLENT

  • ✅ Editorial workflow (draft → review → publish)
  • ✅ I18n support
  • ✅ SEO optimization
  • ✅ User roles & permissions
  • ✅ Media management
  • ✅ API-first architecture

Development Workflow: 🟢 EXCELLENT

  • ✅ TypeScript throughout
  • ✅ Hot reload
  • ✅ Error handling
  • ✅ Fallback content
  • ✅ Health monitoring

🎯 What You Can Do Now

Content Editing:

  1. Blog Posts: Create, edit, publish with workflow
  2. Static Pages: About, Contact, Services via Strapi
  3. Categories & Tags: Organize content
  4. Media Library: Upload and manage images

Advanced Features:

  1. User Management: Add editors, set permissions
  2. Content Scheduling: Publish posts at specific times
  3. Version History: Track content changes
  4. Content Preview: See how posts look before publishing

🔧 Troubleshooting

If Strapi won't start:

# Check logs
docker-compose logs strapi

# Reset database
docker-compose down -v
docker-compose up -d db
docker-compose up -d strapi

If content doesn't load:

# Check API connection
curl http://localhost:1337/api/static-pages?filters[page_key][$eq]=about

# Check Next.js logs
pnpm run dev

If you need to rollback:

# The About page has fallback to hardcoded content
# So if Strapi fails, the site still works!

🚀 Next Steps

  1. Migrate more pages: Contact, Services, etc.
  2. Add newsletter integration: Mailchimp/SendGrid
  3. Set up user roles: Writers, Editors, Admins
  4. Configure backups: Database and uploads
  5. Add monitoring: Health checks and alerts

💡 Pro Tips

  • Always have fallbacks: Your site works even if Strapi is down
  • Use environment variables: Never hardcode secrets
  • Test migrations: Always test content loading after changes
  • Backup regularly: Content is your business asset
  • Document changes: Keep track of what you migrate

Your CMS is now production-ready with enterprise-level best practices! 🎉