20 lines
410 B
JavaScript
20 lines
410 B
JavaScript
module.exports = {
|
|
apps : [{
|
|
name: 'AutoCat API',
|
|
script: 'index.js',
|
|
|
|
// Options reference: https://pm2.keymetrics.io/docs/usage/application-declaration/
|
|
node_args: '--async-stack-traces',
|
|
instances: 1,
|
|
autorestart: true,
|
|
watch: false,
|
|
max_memory_restart: '1G',
|
|
env: {
|
|
NODE_ENV: 'development'
|
|
},
|
|
env_production: {
|
|
NODE_ENV: 'production'
|
|
}
|
|
}]
|
|
};
|