mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-27 01:23:30 +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 |
||
|---|---|---|
| .. | ||
| main | ||
| test | ||