Merge pull request #1035 from feiyu-xie/fix-docker-login

Fix: Docker login configuration error
This commit is contained in:
Fatih Kadir Akın
2026-02-24 11:13:47 +00:00
committed by GitHub
2 changed files with 25 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ else
cd "$APP_DIR"
fi
# Start supervisor (manages PostgreSQL and Next.js)
# Start supervisord (manages PostgreSQL and Next.js)
echo "▶ Starting services..."
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf &
SUPERVISOR_PID=$!
@@ -130,9 +130,14 @@ done
# Run migrations
echo "▶ Running database migrations..."
cd "$APP_DIR"
npx prisma migrate deploy
echo "✓ Migrations complete"
# Start Next.js
echo "▶ Starting Next.js..."
/usr/bin/supervisorctl -c /etc/supervisor/conf.d/supervisord.conf start nextjs
# Seed on first run only
SEED_MARKER="/data/.seeded"
if [ ! -f "$SEED_MARKER" ]; then
@@ -145,6 +150,24 @@ if [ ! -f "$SEED_MARKER" ]; then
fi
fi
# Wait for supervisord socket to be ready
echo "▶ Waiting for supervisord..."
for i in $(seq 1 30); do
if supervisorctl -c /etc/supervisor/conf.d/supervisord.conf status >/dev/null 2>&1; then
echo "✓ Supervisord is ready"
break
fi
if [ $i -eq 30 ]; then
echo "✗ Supervisord failed to start"
exit 1
fi
sleep 1
done
# Start Next.js
echo "▶ Starting Next.js..."
supervisorctl -c /etc/supervisor/conf.d/supervisord.conf start nextjs
echo ""
echo "╔═══════════════════════════════════════════════════════════════╗"
echo "║ ║"

View File

@@ -18,7 +18,7 @@ stderr_logfile=/var/log/supervisor/postgresql-error.log
command=node /data/app/.next/standalone/server.js
directory=/data/app
user=root
autostart=true
autostart=false
autorestart=true
priority=20
startsecs=10