Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
seoyoung7623 authored Aug 2, 2024
1 parent bae861c commit 18f64f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 18f64f6

Please sign in to comment.