12345678910111213141516171819 |
- 'use strict';
- const app = 'service';
- module.exports = {
- apps: [
- {
- name: app, // app name
- script: './bootstrap.js', // startup script
- out: `./logs/${app}.log`,
- error: `./logs/${app}.err`,
- // if change ,pm2 will restart it
- watch: [
- 'dist',
- ],
- env: {
- NODE_ENV: 'production', // env
- },
- },
- ],
- };
|