From c93ed661e4c934d1d46d8a8cd31213211514146f Mon Sep 17 00:00:00 2001 From: XyL1GaN4eG Date: Tue, 23 Jul 2024 15:56:26 +0300 Subject: [PATCH] Update deploy_user_service.yml --- .github/workflows/deploy_user_service.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_user_service.yml b/.github/workflows/deploy_user_service.yml index 373c6c0..56eb7a1 100644 --- a/.github/workflows/deploy_user_service.yml +++ b/.github/workflows/deploy_user_service.yml @@ -41,7 +41,7 @@ jobs: SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }} run: | ssh -vvv -o StrictHostKeyChecking=no ${SERVER_USERNAME}@${SERVER_HOST} 'bash -s' << 'EOF' - mv /home/xyl1gan4eg/myJavaProjects/weatherProject/userService/target/userService-0.0.1-SNAPSHOT.jar /opt/userService/ + sudo cp /home/xyl1gan4eg/myJavaProjects/weatherProject/userService/target/userService-0.0.1-SNAPSHOT.jar /opt/userService/ EOF - name: SSH into server and restart userService