fix(rpm): паковать SQL-миграции и задавать MIGRATIONS_DIR в юните #34

Merged
pxc1984 merged 1 commit from fix/rpm-migrations into master 2026-11-23 14:08:55 +00:00
Owner

Старт ноды из rpm падал: migrate: read migrations dir: open migrations/sqlite: no such file or directory — в пакет миграции не клались, а нода ищет migrations/ в cwd и рядом с бинарником.

  • release.yml: миграции пакуются в SOURCES (migrations.tar.gz)
  • spec: ставятся в /usr/share/yc-hack-horses/migrations
  • юнит: Environment=MIGRATIONS_DIR=/usr/share/yc-hack-horses/migrations
Старт ноды из rpm падал: `migrate: read migrations dir: open migrations/sqlite: no such file or directory` — в пакет миграции не клались, а нода ищет `migrations/` в cwd и рядом с бинарником. - release.yml: миграции пакуются в SOURCES (migrations.tar.gz) - spec: ставятся в /usr/share/yc-hack-horses/migrations - юнит: `Environment=MIGRATIONS_DIR=/usr/share/yc-hack-horses/migrations`
fix(rpm): паковать SQL-миграции и задавать MIGRATIONS_DIR в юните
Some checks failed
Test, publish and deploy / Detect changed containers (pull_request) Successful in 12s
Test, publish and deploy / build-backend (pull_request) Has been skipped
Test, publish and deploy / build-frontend (pull_request) Has been skipped
Test, publish and deploy / build-data (pull_request) Has been skipped
Test, publish and deploy / build-image (pull_request) Has been skipped
Test, publish and deploy / deploy (pull_request) Has been skipped
Test, publish and deploy / Detect changed containers (push) Successful in 8s
Test, publish and deploy / build-backend (push) Has been skipped
Test, publish and deploy / build-frontend (push) Has been skipped
Test, publish and deploy / build-data (push) Has been skipped
Test, publish and deploy / build-image (push) Has been skipped
Test, publish and deploy / deploy (push) Has been skipped
Release / frontend dist (Electron) (push) Successful in 1m39s
Release / backend-linux-amd64 (push) Successful in 2m15s
Release / Electron desktop (.deb / .AppImage) (push) Failing after 3m21s
Release / node RPM (linux-amd64) (push) Successful in 1m20s
Release / mobile (android APK) (push) Successful in 14m14s
Release / Create draft release (push) Successful in 24s
f989390b1f
Нода ищет migrations/ в cwd и рядом с бинарником; в rpm их не было,
старт падал 'migrate: read migrations dir: no such file or directory'.
Теперь миграции ставятся в /usr/share/yc-hack-horses/migrations,
юнит задаёт MIGRATIONS_DIR.
pxc1984 merged commit f989390b1f into master 2026-11-23 14:08:55 +00:00
pxc1984 deleted branch fix/rpm-migrations 2026-11-23 14:08:55 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cu3rd/yc-hack-horses!34
No description provided.