File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11on :
2+ workflow_dispatch :
23 push :
34 branches :
45 - develop
@@ -43,12 +44,13 @@ jobs:
4344 - name : Deploy SSR build via rsync
4445 if : github.ref == 'refs/heads/develop'
4546 run : |
46- rsync -avz --delete ./dist/ ${{ secrets.SFTP_USERNAME }}@${{ secrets.SFTP_HOST }}:/var/www/servers.setonix
47+ rsync -avz --delete ./ ${{ secrets.SFTP_USERNAME }}@${{ secrets.SFTP_HOST }}:/var/www/servers.setonix
4748
4849 - name : Restart SSR application
4950 if : github.ref == 'refs/heads/develop'
5051 run : |
5152 ssh ${{ secrets.SFTP_USERNAME }}@${{ secrets.SFTP_HOST }} << 'EOF'
52- pm2 stop astro-servers || true
53- PORT=${{ secrets.SERVERS_PORT }} pm2 start server/entry.mjs --name astro-servers --update-env
53+ pm2 stop setonix-servers || true
54+ cd /var/www/servers.setonix
55+ PORT=${{ secrets.SERVERS_PORT }} pm2 start dist/server/entry.mjs --name setonix-servers --update-env
5456 EOF
You can’t perform that action at this time.
0 commit comments