Where those PIDs comes from ? And how to get them all ? Because in /server/nodejs/vhost/pids/xxxx.pid there is only 1 PID.
What i want to do is to create a bash script that will automate pull from git & rebuild Nuxt 3 project:
- Get all PIDs of the project
- Stop all of them (maybe with
kill
command?)
- Pull new code from git repository
- Rebuild the project
- Start the node project again
Any body here can give me suggestion ? Thanks