ecosystem.config.js 765 字节
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
            args: '',
            instances: 'max',
            autorestart: true,
            watch: false,
P
Peter Pan 已提交
14 15 16
            exec_mode: 'cluster', // eslint-disable-line @typescript-eslint/naming-convention
            max_memory_restart: '2G', // eslint-disable-line @typescript-eslint/naming-convention
            wait_ready: true, // eslint-disable-line @typescript-eslint/naming-convention
17 18 19 20 21 22 23
            env: {
                ...process.env,
                NODE_ENV: 'production'
            }
        }
    ]
};