Add digital catalog with shareable flipbook and ktg.montzar.ir deploy files.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user