[英]pm2 node api start seems to not respect host?
I'm trying to wrap around pm2
:我试图环绕
pm2
:
pm2.start(
{
apps: [
{
script: 'app.js',
path: 'remote/path',
name: 'App',
autorestart: false,
host: [123.456.789],
username: 'root',
},
],
},
err => {
if (err) throw err
},
)
It still seems to be trying to run app.js
on my local machine, and not the host 123.456.789
- any idea what's going on?它似乎仍然试图在我的本地机器上运行
app.js
,而不是主机123.456.789
- 知道发生了什么吗?
host
应该是一个字符串数组: host: ['123.456.789']
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.