File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,17 @@ jobs:
5858 # Build
5959 pnpm build
6060
61+ # Start second instance
62+ pm2 start apps/server/ecosystem.config.js --only harmony-api2 --env production
63+
64+ sleep 5
65+
6166 # Restart first instance
62- pm2 restart harmony-api --env production || pm2 start apps/server/ecosystem.config.js --env production
67+ pm2 restart apps/server/ecosystem.config.js --env production || pm2 start apps/server/ecosystem.config.js --env production
6368
64- # Wait for server to start
6569 sleep 5
6670
67- # Restart second instance
68- pm2 restart harmony-api2 --env production || pm2 start apps/server/ecosystem.config.js --env production
71+ # Stop second instance
72+ pm2 stop harmony-api2
6973
7074 echo "Deployment Success"
You can’t perform that action at this time.
0 commit comments