提交 | 用户 | age | ||
a96cb2 | 1 | const { name } = require('./package.json'); |
V | 2 | const path = require('path'); |
3 | ||
4 | module.exports = { | |
5 | apps: [ | |
6 | { | |
7 | name, | |
8 | script: path.resolve(__dirname, './dist/index.js'), | |
9 | instances: require('os').cpus().length, | |
10 | autorestart: true, | |
11 | watch: true, | |
12 | env_production: { | |
13 | NODE_ENV: 'production', | |
14 | PORT: 8080, | |
15 | }, | |
16 | }, | |
17 | ], | |
18 | }; |