Files
dvcp-node-service/pm2.config.js
2023-06-12 16:24:26 +08:00

27 lines
516 B
JavaScript

module.exports = {
apps: [
{
name: 'dev',
script: "index.js",
watch: ["src", "tpl"],
ignore_watch: ["node_modules"],
shutdown_with_message: true,
},
{
name: 'oms-node',
script: "index.js",
watch: false
}
],
deploy: {
production: {
user: 'root',
host: '192.168.1.87',
ref: 'origin/dev',
repo: 'http://git.sinoecare.com/lab/dvcp-node-service.git',
path: '/home/deploy',
postDeploy: "npm run pro"
}
}
}