diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 3b820dd..cf63948 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -30,7 +30,7 @@ jobs: username: ${{ secrets.SERVER_USERNAME }} password: ${{ secrets.SERVER_PASSWORD }} port: ${{ secrets.SERVER_SSH_PORT }} - script: nohup java -jar ~/sickgyun-server/main-server/build/libs/main-server.jar > ~/logs/sickgyun.log 2>&1 & + script: chmod +x ~/script/deploy-main-server.sh & sh ~/script/deploy-main-server.sh - name: deploy logging-server # if: steps.changes.outputs.logging == 'true' @@ -40,4 +40,4 @@ jobs: username: ${{ secrets.SERVER_USERNAME }} password: ${{ secrets.SERVER_PASSWORD }} port: ${{ secrets.SERVER_SSH_PORT }} - script: sh ~/script/deploy-logging-server.sh + script: chmod +x ~/script/deploy-logging-server.sh & sh ~/script/deploy-logging-server.sh