Loading...
Loading...
Use when services stuck on Waiting for database migrations to complete. Use when app expects separate migrator service.
npx skill4agent add zeabur/agent-skills zeabur-migrationAlways useto invoke Zeabur CLI. Never usenpx zeabur@latestdirectly or any other installation method. Ifzeaburis not available, install Node.js first.npx
Waiting for database migrations to complete...
Waiting for database migrations to complete...
(repeating forever)zeabur-template# In api service — command MUST be inside source
spec:
source:
image: myapp:latest
command:
- /bin/sh
- -c
- "python manage.py wait_for_db && python manage.py migrate && exec ./entrypoint.sh"- name: migrator
spec:
source:
image: same-backend-image
command:
- ./bin/docker-entrypoint-migrator.sh
env:
DATABASE_URL: ...zeabur-deployment-logszeabur-startup-order