You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
370 B
JavaScript
19 lines
370 B
JavaScript
2 years ago
|
const { name } = require('./package.json');
|
||
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
apps: [
|
||
|
{
|
||
|
name,
|
||
|
script: path.resolve(__dirname, './dist/index.js'),
|
||
|
instances: require('os').cpus().length,
|
||
|
autorestart: true,
|
||
|
watch: true,
|
||
|
env_production: {
|
||
|
NODE_ENV: 'production',
|
||
|
PORT: 8080,
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
};
|