github arunavo4/gitea-mirror v3.0.1

latest release: v3.0.2
pre-release2 months ago

Gitea Mirror v3.0.1 Release Notes

🐛 Bug Fixes

Docker Container Startup Issues

  • Fixed "Cannot find module '../src/lib/db/migrate'" error in Docker containers
  • Made manage-db.ts script self-contained to work in production environments
  • Added missing drizzle migrations folder to Docker image
  • Resolved database path resolution issues in compiled scripts

🔧 Technical Details

Changes Made:

  1. Self-contained Scripts: Removed external module dependencies from manage-db.ts by inlining the getDatabasePath function
  2. Docker Build: Added COPY --from=builder /app/drizzle ./drizzle to include migrations in the final image
  3. Database Operations: Updated resetUsers function to use direct SQL instead of schema imports

Files Modified:

  • scripts/manage-db.ts - Made self-contained for production use
  • Dockerfile - Added drizzle migrations folder to runtime image
  • package.json - Bumped version to 3.0.1

📦 Upgrade Instructions

If you're already on v3.0.0:

docker pull ghcr.io/arunavo4/gitea-mirror:v3.0.1
docker compose up -d

If you're on v2.x, please follow the v3.0.0 Upgrade Guide as this is still a breaking change.

✅ Verification

The Docker container now starts successfully with proper database migration support.

Don't miss a new gitea-mirror release

NewReleases is sending notifications on new releases.