From 2e7a4c7ab6698f8045b8ca8a707ac50adba418d6 Mon Sep 17 00:00:00 2001 From: ericcccliu Date: Fri, 29 Mar 2024 03:04:06 -0500 Subject: [PATCH] maybe this config will work --- .github/workflows/deploy_api.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_api.yml b/.github/workflows/deploy_api.yml index 7d81416..83229c9 100644 --- a/.github/workflows/deploy_api.yml +++ b/.github/workflows/deploy_api.yml @@ -36,6 +36,7 @@ jobs: fi echo "$ENV_FILE_CONTENT" > .env docker build -t hackgpt . - docker stop $(docker ps -q --filter ancestor=hackgpt) || true - docker run -d -p 8000:8000 hackgpt + docker stop hackgpt-container || true + docker rm hackgpt-container || true + docker run -d --name hackgpt-container -p 8000:8000 hackgpt ' \ No newline at end of file