Files

27 lines
621 B
JavaScript

/**
* 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,
},
],
};