Skip to content

Commit afecc35

Browse files
committed
Use pm2 reload instead of restart
1 parent 1b3b729 commit afecc35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
cd ~/api
2222
git pull
2323
npm ci
24-
pm2 restart app --time
24+
pm2 reload app --time --update-env
2525
- name: Deploy API5
2626
uses: appleboy/ssh-action@v0.1.2
2727
with:
@@ -32,4 +32,4 @@ jobs:
3232
cd ~/api
3333
git pull
3434
npm ci
35-
pm2 restart app --time
35+
pm2 reload app --time --update-env

0 commit comments

Comments
 (0)