Files
harheimertc/harheimertc.simple.cjs
Torsten Schulz (local) 3586704cce
Some checks failed
Code Analysis and Production Deploy / analyze (push) Failing after 10m29s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Has been skipped
Update file permissions for multiple server and test files to executable mode
2026-07-15 08:45:12 +02:00

26 lines
573 B
JavaScript
Executable File

// Load environment variables from .env (production secrets)
try {
// eslint-disable-next-line global-require
require('dotenv').config({ path: '/var/www/harheimertc/.env' })
} catch (_e) {
// ignore
}
module.exports = {
apps: [{
name: 'harheimertc',
script: 'node',
args: '.output/server/index.mjs',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
PORT: 3100,
ENCRYPTION_KEY: process.env.ENCRYPTION_KEY,
JWT_SECRET: process.env.JWT_SECRET
}
}]
}