ecosystem.config.js 741 字节
Newer Older
1
// cSpell:words autorestart
2 3 4 5 6 7
/* eslint-disable @typescript-eslint/no-var-requires */

module.exports = {
    apps: [
        {
            name: 'visualdl',
8 9
            script: 'index.js',
            cwd: require('path').resolve(__dirname, './dist'),
10 11 12 13 14 15 16 17 18 19 20 21 22 23
            args: '',
            instances: 'max',
            autorestart: true,
            watch: false,
            exec_mode: 'cluster', // eslint-disable-line @typescript-eslint/camelcase
            max_memory_restart: '2G', // eslint-disable-line @typescript-eslint/camelcase
            wait_ready: true, // eslint-disable-line @typescript-eslint/camelcase
            env: {
                ...process.env,
                NODE_ENV: 'production'
            }
        }
    ]
};