- Add metabase.service.ts for automatic DB registration on tenant creation - Hook createTenant, addTenantToOwner and deleteTenant to sync with Metabase - Add environment variables for Metabase integration - Fix dashboard routing for global admin users - Fix CFDI status casing (Vigente vs vigente) - Fix sidebar empty nav crash - Fix KPI null regimen_fiscal values - Fix CFDI type mapping (EMITIDO/RECIBIDO) - Update branding from Horux360 to Horux Despachos - Add legacy migration scripts for central and tenant DBs
37 lines
859 B
JavaScript
37 lines
859 B
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'horux-api',
|
|
interpreter: 'node',
|
|
script: '/root/HoruxDespachos/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/cli.mjs',
|
|
args: 'src/index.ts',
|
|
cwd: '/root/HoruxDespachos/apps/api',
|
|
instances: 1,
|
|
exec_mode: 'fork',
|
|
autorestart: true,
|
|
max_memory_restart: '1G',
|
|
kill_timeout: 5000,
|
|
listen_timeout: 10000,
|
|
env: {
|
|
NODE_ENV: 'production',
|
|
PORT: 4000,
|
|
},
|
|
},
|
|
{
|
|
name: 'horux-web',
|
|
script: 'node_modules/next/dist/bin/next',
|
|
args: 'start',
|
|
cwd: '/root/HoruxDespachos/apps/web',
|
|
instances: 1,
|
|
exec_mode: 'fork',
|
|
autorestart: true,
|
|
max_memory_restart: '512M',
|
|
kill_timeout: 5000,
|
|
env: {
|
|
NODE_ENV: 'production',
|
|
PORT: 3000,
|
|
},
|
|
},
|
|
],
|
|
};
|