#Automating Process Termination for Nuxt Server
7 messages · Page 1 of 1 (latest)
Ok, could you give me an example on how to?
Like adding below to the yaml file?
- name: Install pm2
run: npm install pm2 -g
- name: Start or restart the Nuxt.js application with pm2
run: pm2 startOrRestart ecosystem.config.cjs --env production
My ecosystem.config.cjs:
module.exports = {
apps: [
{
name: 'app name',
port: '3000',
exec_mode: 'cluster',
instances: 'max',
script: './.output/server/index.mjs',
},
],
};
look up pm2 watch functionality
Could you be more specific, I did not get what you meant. I should read doc for pm2?