Files
intelaide/intelaide-backend/intelaide-ecosystem.config.cjs
2026-01-20 04:54:10 +00:00

26 lines
652 B
JavaScript

// intelaide-ecosystem.config.cjs
const { join } = require('path');
module.exports = {
apps: [
{
name: 'intelaide-backend',
// Use the absolute path to the entry file (server.js)
script: join(__dirname, 'server.js'),
cwd: __dirname,
// interpreter: '/root/.nvm/versions/node/v22.14.0/bin/node', // adjust this if needed
// You can remove node_args if unnecessary
env: {
DB_HOST: '127.0.0.1',
PORT: 5002,
DB_NAME: 'assist_hub',
DB_USER: 'root',
DB_PASS: 'mush',
JWT_SECRET: 'my_super_securd_jwt_secrettt',
JWT_EXPIRES_IN: '1h'
}
}
]
};