this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 27 lines 782 B view raw
1#!/bin/bash 2set -e 3 4cd /opt/assistant 5 6# Backup .env before git pull might overwrite it 7if [[ -f .env ]]; then 8 cp .env ".env.backup.$(date +%s)" 9fi 10 11git pull origin main 12 13# Build images in parallel, then start 14export DOCKER_BUILDKIT=1 15export COMPOSE_DOCKER_CLI_BUILD=1 16docker compose -f docker-compose.yml -f docker-compose.prod.yml build --parallel 17docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d 18 19# Wait for services to be healthy before pruning 20echo "Waiting for services to be healthy..." 21sleep 10 22if docker compose -f docker-compose.yml -f docker-compose.prod.yml ps | grep -q "unhealthy\|Exit"; then 23 echo "Warning: Some services may not be healthy" 24 docker compose -f docker-compose.yml -f docker-compose.prod.yml ps 25else 26 docker image prune -f 27fi