Fix run.sh bugs

This commit is contained in:
Santiago Lo Coco 2023-11-07 11:29:35 -03:00
parent 52bf0974ed
commit d21a761689
1 changed files with 2 additions and 2 deletions

4
run.sh
View File

@ -66,8 +66,8 @@ elif [ -n "$domain" ] && [ -z "$down" ]; then
export API_IMAGE=$USER/user-manager:test
docker compose -f auth-domain/docker-compose.dev.yml --env-file auth-domain/.env.prod down
docker compose -f auth-domain/docker-compose.dev.yml --env-file auth-domain/.env.dev up --abort-on-container-exit
docker compose -f auth-domain/docker-compose.dev.yml --env-file auth-domain/.env.prod exec usermanager-api python manage.py recreate_db
docker compose -f auth-domain/docker-compose.dev.yml --env-file auth-domain/.env.prod exec usermanager-api python manage.py seed_db
docker compose -f auth-domain/docker-compose.dev.yml --env-file auth-domain/.env.prod exec usermanager-api-dev python manage.py recreate_db
docker compose -f auth-domain/docker-compose.dev.yml --env-file auth-domain/.env.prod exec usermanager-api-dev python manage.py seed_db
else
export API_IMAGE=$USER/user-manager:prod
docker compose -f auth-domain/docker-compose.yml --env-file auth-domain/.env.prod down