Add AGENTS.md and deploy configs to the API repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-30 19:21:30 +03:30
co-authored by Cursor
parent 01f0b82ac6
commit 5cd8683fe6
4 changed files with 343 additions and 0 deletions
+24
View File
@@ -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,
},
],
};