Add digital catalog with shareable flipbook and ktg.montzar.ir deploy files.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-19 14:37:49 +03:30
co-authored by Cursor
commit a8374e7d6c
54 changed files with 8462 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
/**
* PM2 — Digital Catalog on the shared montime host.
* Port 3020 avoids clash with montime (:3000), forisanad (:3001), superadmin (:3010).
*
* On server (as montime):
* pm2 start /var/www/ktg/deploy/ecosystem.config.cjs
* pm2 save
*/
module.exports = {
apps: [
{
name: "ktg-catalog",
cwd: "/var/www/ktg",
script: "node_modules/tsx/dist/cli.mjs",
args: "--env-file=.env server/index.ts",
instances: 1,
exec_mode: "fork",
env: {
NODE_ENV: "production",
PORT: "3020",
},
max_memory_restart: "500M",
time: true,
},
],
};