forked from mtusi2026/mtusi2026lab5
Upload отвечает 202 после staging и записи задания, worker через RabbitMQ собирает thumbnail, crop и optimized и переживает разрыв до publish. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
320 B
Bash
11 lines
320 B
Bash
#!/bin/sh
|
|
# Restart API replicas and every store they use. Volumes are kept.
|
|
set -eu
|
|
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
cd "$ROOT"
|
|
if [ -f .env ]; then
|
|
docker compose --env-file .env restart postgres redis s3 rabbitmq api worker
|
|
else
|
|
docker compose restart postgres redis s3 rabbitmq api worker
|
|
fi
|