zeabur-startup-order | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / development / zeabur-startup-order

zeabur-startup-order

maintained by zeabur

star 10 account_tree 1 verified_user MIT License
bolt View GitHub

name: zeabur-startup-order description: Use when service fails with Connection refused to database or redis. Use when API crashes because DB not ready.

Zeabur Startup Order Issues

Always use npx zeabur@latest to invoke Zeabur CLI. Never use zeabur directly or any other installation method. If npx is not available, install Node.js first.

Symptom

Connection refused :5432
connection to server at "X" failed
OperationalError: connection failed

Cause

Service starts before dependency (DB/Redis) is ready.

Fix

Add wait logic to service command (command MUST be inside source):

# Python example
spec:
  source:
    image: myapp:latest
    command:
      - /bin/sh
      - -c
      - "python manage.py wait_for_db && exec ./entrypoint.sh"

Or for Node.js:

spec:
  source:
    image: myapp:latest
    command:
      - /bin/sh
      - -c
      - "until nc -z postgres 5432; do sleep 1; done && node server.js"

Quick Fix

If DB is now ready, just restart the failed service:

npx zeabur@latest service restart --id <service-id> -y -i=false

See Also

  • zeabur-template — template YAML reference for startup commands and dependencies
  • zeabur-restart — restart services after fixing startup order

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 10
GitHub Forks 1
Created Mar 2026
Last Updated 3 months ago
development development architecture patterns

Related Skills

dagger-design-proposals
chevron_right
nestjs-expert
chevron_right
docker-expert
chevron_right
kafka-streams-topology
chevron_right
kafka-architecture
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.