Skip to content

Commit 7c43c05

Browse files
committed
Fix servers ci again
1 parent 6019c1d commit 7c43c05

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/servers.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
on:
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

0 commit comments

Comments
 (0)