File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff 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'}}
31303231 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
You can’t perform that action at this time.
0 commit comments