fix: update PM2 restart process to use a dedicated deployment script
This commit is contained in:
@@ -67,8 +67,5 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DEPLOY_PATH: ${{ vars.DEPLOY_PATH }}
|
DEPLOY_PATH: ${{ vars.DEPLOY_PATH }}
|
||||||
run: |
|
run: |
|
||||||
echo "Restarting applications with PM2..."
|
restart-application
|
||||||
pm2 startOrRestart backend/ecosystem.config.js --update-env
|
|
||||||
pm2 startOrRestart frontend/ecosystem.config.js
|
|
||||||
echo "Deployment successful!"
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user