deploy: prevent no app running in pm2
This commit is contained in:
@@ -43,4 +43,6 @@ jobs:
|
||||
corepack enable
|
||||
yarn install --frozen-lockfile
|
||||
NODE_ENV=production yarn build
|
||||
pm2 restart api-beta-pawol
|
||||
pm2 describe api-beta-pawol > /dev/null 2>&1 \
|
||||
&& pm2 restart api-beta-pawol \
|
||||
|| pm2 start yarn --name api-beta-pawol -- start
|
||||
|
||||
Reference in New Issue
Block a user