Add AGENTS.md and deploy configs to the API repo.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* 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',
|
||||
instances: 1,
|
||||
exec_mode: 'fork',
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: '3010',
|
||||
},
|
||||
max_memory_restart: '400M',
|
||||
time: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user