25 lines
600 B
JavaScript
25 lines
600 B
JavaScript
/**
|
|
* PM2 — SuperAdmin API on shared montime host.
|
|
* Port 3010 avoids clash with montime-api (:3000) and forisanad (:3001).
|
|
*
|
|
* Usage (on server, as montime):
|
|
* pm2 start /var/www/superadmin/api/deploy/ecosystem.config.cjs
|
|
*/
|
|
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'superadmin-api',
|
|
cwd: '/var/www/superadmin/api',
|
|
script: 'dist/main.js', // after nest build with include: src/**/*
|
|
instances: 1,
|
|
exec_mode: 'fork',
|
|
env: {
|
|
NODE_ENV: 'production',
|
|
PORT: '3010',
|
|
},
|
|
max_memory_restart: '400M',
|
|
time: true,
|
|
},
|
|
],
|
|
};
|