/
iezhelev
/
cppsh_micro
Обзор
Документация
Войти
/
iezhelev
/
cppsh_micro
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
redeploy.sh
33 строки
930 B
iezhelev
profles option
20 июн 2025, 11:57
20 июн 2025, 11:57
4db70c2
Код
Авторство
О чём код?
#!/bin/bash # Ensure Docker is running before executing this script PROFILES="${1:-}" echo "Generating sync code..." node ./cmd/generator/1_generator.js # generate migration script echo "Generating migration script..." node ./cmd/generator/2_migrations_generator.js # generate migration script echo "Generating cdc script..." node ./cmd/generator/3_cdc_generator.js # Step 1: Stop and remove existing containers echo "Stopping and removing existing containers..." docker-compose down # Step 2: Build the Docker images echo "Building Docker images..." docker-compose build # Step 3: Start the containers in detached mode (with profiles if specified) if [ -z "$PROFILES" ]; then echo "Starting containers in detached mode (no profiles)..." docker-compose up -d else echo "Starting containers in detached mode with profiles: $PROFILES..." docker-compose --profile $PROFILES up -d fi echo "Automation complete!"