// PM2 configuration: https://nuxtjs.org/deployments/pm2/ module.exports = { apps: [ { name: 'app', exec_mode: 'cluster', instances: '1', script: 'yarn', args: 'start' } ], // Deployment Configuration deploy: { prod: { user: 'exploitation', host: [''], ref: 'origin/master', repo: 'git@gitlab.2iopenservice.com:opentalent/admin.git', path: '/var/opentalent/git/app', 'post-deploy': 'yarn install && yarn build && pm2 start app' }, preprod: { user: 'exploitation', host: ['preprod-v2'], ref: 'origin/master', repo: 'git@gitlab.2iopenservice.com:opentalent/admin.git', path: '/var/opentalent/git/app', 'post-deploy': 'yarn install && yarn build && pm2 start app' } } }