Loading...
Loading...
Use when service fails with Connection refused to database or redis. Use when API crashes because DB not ready.
npx skill4agent add zeabur/agent-skills zeabur-startup-orderAlways useto invoke Zeabur CLI. Never usenpx zeabur@latestdirectly or any other installation method. Ifzeaburis not available, install Node.js first.npx
Connection refused :5432
connection to server at "X" failed
OperationalError: connection faileddependencieshealthCheckzeabur-template- name: postgresql
spec:
ports:
- id: database
port: 5432
type: TCP
healthCheck:
type: TCP
port: database # references the port ID above- name: redis
spec:
ports:
- id: database
port: 6379
type: TCP
healthCheck:
type: TCP
port: databasezeabur-templatesourcespec:
source:
image: myapp:latest
command:
- /bin/sh
- -c
- "until nc -z postgres 5432; do sleep 1; done && node server.js"npx zeabur@latest service restart --id <service-id> -y -i=falsezeabur-migration