mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-10-10 17:13:58 +02:00
fix deploy
This commit is contained in:
1 parent
da0f397e9a
commit
dc32e871e8
1 file changed
+11
-2
@@ -27,12 +27,21 @@ jobs:
|
|||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Deploy to VPS
|
- name: Deploy to VPS
|
||||||
|
uses: appleboy/scp-action@v0.1.7
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.VPS_HOST }}
|
||||||
|
username: ${{ secrets.VPS_USERNAME }}
|
||||||
|
key: ${{ secrets.VPS_SSH_KEY }}
|
||||||
|
source: "backend/dist/*"
|
||||||
|
target: "/home/nullplate/deflock/backend/dist"
|
||||||
|
strip_components: 2
|
||||||
|
rm: true
|
||||||
|
|
||||||
|
- name: Restart application
|
||||||
uses: appleboy/ssh-action@v1
|
uses: appleboy/ssh-action@v1
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.VPS_HOST }}
|
host: ${{ secrets.VPS_HOST }}
|
||||||
username: ${{ secrets.VPS_USERNAME }}
|
username: ${{ secrets.VPS_USERNAME }}
|
||||||
key: ${{ secrets.VPS_SSH_KEY }}
|
key: ${{ secrets.VPS_SSH_KEY }}
|
||||||
script: |
|
script: |
|
||||||
mkdir -p /home/nullplate/deflock/backend/dist
|
|
||||||
rsync -avz --delete ./dist/ /home/nullplate/deflock/backend/dist/
|
|
||||||
pm2 reload df-backend || pm2 start /home/nullplate/deflock/backend/dist/server.js --name df-backend
|
pm2 reload df-backend || pm2 start /home/nullplate/deflock/backend/dist/server.js --name df-backend
|
||||||
Reference in new issue
Block a user