From 18f64f6044f0b9bef12cc395b7bc84595b934aa8 Mon Sep 17 00:00:00 2001 From: SeoYoung Date: Sat, 3 Aug 2024 05:29:04 +0900 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 9260af8..da28113 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -53,7 +53,7 @@ jobs: run: | echo "$SSH_PRIVATE_KEY" > private_key chmod 600 private_key - scp -i private_key ./app.jar $SERVER_USER@$SERVER_HOST:$SERVER_PATH/app.jar + scp -i private_key ./app.jar $SERVER_USER@$SERVER_HOST:$SERVER_PATH deploy_to_was: runs-on: ubuntu-latest @@ -76,7 +76,7 @@ jobs: echo "$WEB_SSH_PRIVATE_KEY" > web_private_key chmod 600 web_private_key - ssh -i web_private_key $WEB_SERVER_USER@$WEB_SERVER_HOST "scp -i was_private_key $WEB_SERVER_PATH/app.jar $WAS_SERVER_USER@$WAS_SERVER_HOST:$WAS_SERVER_PATH/app.jar" + ssh -i web_private_key $WEB_SERVER_USER@$WEB_SERVER_HOST "scp -i was_private_key $WEB_SERVER_PATH/app.jar $WAS_SERVER_USER@$WAS_SERVER_HOST:$WAS_SERVER_PATH" ssh -i was_private_key $WAS_SERVER_USER@$WAS_SERVER_HOST << 'EOF' sudo fuser -k 8080/tcp || true cd $WAS_SERVER_PATH