+4
-1
@@ -43,9 +43,12 @@ steps:
|
||||
rm -rf "$TMP_DIR"
|
||||
cd "$APP_DIR"
|
||||
docker compose pull web
|
||||
ss -tlnp | grep :3000 || true
|
||||
# Принудительно освобождаем порт 3000
|
||||
docker stop na-granicelife 2>/dev/null || true
|
||||
docker rm na-granicelife 2>/dev/null || true
|
||||
docker compose down --remove-orphans || true
|
||||
# Если порт всё ещё занят — убиваем любой процесс на нём
|
||||
docker ps -a --filter "publish=3000" -q | xargs -r docker stop 2>/dev/null || true
|
||||
docker compose up -d
|
||||
docker image prune -f
|
||||
docker compose ps
|
||||
|
||||
Reference in New Issue
Block a user