From 3cb002271306b1a6a64fbfbc17e46c434e0e1188 Mon Sep 17 00:00:00 2001 From: Henrique Melo Date: Tue, 24 Oct 2023 04:15:39 -0300 Subject: [PATCH] fix --- .docker/entrypoint.prod.sh | 2 +- .github/workflows/deploy.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.docker/entrypoint.prod.sh b/.docker/entrypoint.prod.sh index fe10100..6ffbc2a 100755 --- a/.docker/entrypoint.prod.sh +++ b/.docker/entrypoint.prod.sh @@ -2,7 +2,7 @@ echo "---------------Run migrations---------------" -node /app/node_modules/.bin/typeorm-ts-node-commonjs migration:run -d src/ormconfig.js +node /app/node_modules/.bin/typeorm-ts-node-commonjs migration:run -d /app/ormconfig.js echo "---------------Run migrations - END---------" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 87a4bb8..3532470 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,4 +45,6 @@ jobs: cd ${{env.TARGET_DIR}} git checkout CD_test_branch git pull + sudo docker compose pull sudo docker compose -f docker-compose.prod.yml up -V --force-recreate --build -d + sudo docker image prune -f