From af04c200877bdf6a36833b479e508e10085f0c32 Mon Sep 17 00:00:00 2001 From: Dustbox <53044223+sanggae4133@users.noreply.github.com> Date: Wed, 8 May 2024 18:03:28 +0900 Subject: [PATCH] Update gradle-prod.yml --- .github/workflows/gradle-prod.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle-prod.yml b/.github/workflows/gradle-prod.yml index ac8f58c..5c69263 100644 --- a/.github/workflows/gradle-prod.yml +++ b/.github/workflows/gradle-prod.yml @@ -123,6 +123,7 @@ jobs: host: ${{ secrets.EC2_HOST_PROD }} username: ${{ secrets.EC2_USER_PROD }} script: | + sudo docker stop $(sudo docker ps -q) sudo fuser -k -n tcp 5000 sleep 15 - sudo docker run -i -p 5000:5000 -v "/home/ubuntu/osrm:/data" osrm/osrm-backend osrm-routed --algorithm mld /data/south-korea-latest.osrm + sudo docker run -d -p 5000:5000 -v "/home/ubuntu/osrm:/data" osrm/osrm-backend osrm-routed --algorithm mld /data/south-korea-latest.osrm