mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-06 08:15:57 +00:00
Fixes two critical issues when deploying with runtime.sh: 1. Storage Permission Error - Problem: AccessDeniedException when publishing skills - Root cause: /var/lib/skillhub/storage owned by root, but app runs as 'app' user - Solution: Pre-create storage directory with correct permissions in Dockerfile 2. Audit Log JSONB Type Error - Problem: PostgreSQL JSONB type mismatch when recording audit logs - Root cause: Missing type mapping annotation in AuditLog entity - Solution: Add @JdbcTypeCode(SqlTypes.JSON) annotation and V7 migration Changes: - server/Dockerfile: Add storage directory creation and permission setup - server/skillhub-domain/.../AuditLog.java: Add @JdbcTypeCode annotation - server/skillhub-app/.../V7__fix_audit_log_jsonb_type.sql: Migration for existing data Impact: - New deployments: Issues resolved automatically - Existing deployments: Flyway auto-applies V7 migration on upgrade |
||
|---|---|---|
| .. | ||
| .mvn/wrapper | ||
| skillhub-app | ||
| skillhub-auth | ||
| skillhub-domain | ||
| skillhub-infra | ||
| skillhub-search | ||
| skillhub-storage | ||
| .dockerignore | ||
| Dockerfile | ||
| mvnw | ||
| mvnw.cmd | ||
| pom.xml | ||