Skip to content

Commit 19fc5ce

Browse files
committed
[ci] remove pm2 restart
1 parent 9f0a92b commit 19fc5ce

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

.github/workflows/build-deploy-zodiac.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,10 @@ jobs:
2727
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
2828

2929
- name: Copy package to server
30-
if: ${{ github.repository_owner == 'fangq' && github.event_name != 'pull_request'}}
3130
uses: NeuroJSON/[email protected]
3231
with:
3332
server: ${{ secrets.NEUROJ_SERVER }}
3433
username: ${{ secrets.NEUROJ_SERVER_USER }}
3534
ssh_private_key: ${{ secrets.NEUROJ_SERVER_SSH_KEY }}
3635
local_path: "./build/*"
3736
remote_path: "${{ secrets.NEUROJ_CI_PATH }}/${{ env.BRANCH_NAME }}"
38-
39-
- name: Restart Server (Only in the deployed folder)
40-
run: |
41-
echo "Restarting services in /var/www/html/dev/${{ env.BRANCH_NAME }}/"
42-
ssh -o StrictHostKeyChecking=no ${{ secrets.NEUROJ_SERVER_USER }}@${{ secrets.NEUROJ_SERVER }} << EOF
43-
cd /var/www/html/dev/${{ env.BRANCH_NAME }}/ && pm2 restart all || echo "No PM2 processes found in this directory"
44-
EOF

0 commit comments

Comments
 (0)