无法访问生产主机上的 StrongLoop API - 侦听端口为空

Unable to access StrongLoop API on a production host - Listening Port is empty

我根据 http://strong-pm.io/prod/

在新的生产服务器(Ubuntu Linux 14.04 LTS Trusty Tahr)上设置了新的 StrongLoop Process Manager
npm install -g strong-pm
sudo sl-pm-install
sudo /sbin/initctl start strong-pm

我设法使用以下命令从我的开发机器构建和部署应用程序:

slc deploy -s appthree http://[productionIP]:8701 ..\scc-1.0.0.tgz

但是,我无法访问创建的环回 API,据说在 http://[productionIP]:3000(或 3000+serviceID)

slc ctl -C http://[productionIP] status 显示已部署的应用侦听端口为空

http://[productionIP]:8701, http://[productionIP]:8701/explorer/, and http://[productionIP]:8701/api/Services 可访问。

我的应用 server\config.json 是

{
  "restApiRoot": "/api",
  "host": "0.0.0.0",
  "port": 3000,
  "remoting": {
    "context": {
      "enableHttpContext": false
    },
    "rest": {
      "normalizeHttpPath": false,
      "xml": false
    },
    "json": {
      "strict": false,
      "limit": "100kb"
    },
    "urlencoded": {
      "extended": true,
      "limit": "100kb"
    },
    "cors": false,
    "errorHandler": {
      "disableStackTrace": false
    }
  },
  "legacyExplorer": false
}

而package.json是

  {
    "name": "scc",
    "version": "1.0.0",
    "main": "server/server.js",
    "scripts": {
      "pretest": "jshint ."
    },
    "dependencies": {
      "compression": "^1.0.3",
      "cors": "^2.5.2",
      "errorhandler": "^1.1.1",
      "loopback": "^2.14.0",
      "loopback-boot": "^2.6.5",
      "loopback-datasource-juggler": "^2.19.0",
      "loopback-connector-rethinkdb": "git://github.com/fuwaneko/loopback-connector-rethinkdb",
      "serve-favicon": "^2.0.1"
    },
    "optionalDependencies": {
      "loopback-explorer": "^1.1.0"
    },
    "devDependencies": {
      "async": "^1.0.0",
      "jshint": "^2.5.6"
    },
    "repository": {
      "type": "",
      "url": ""
    },
    "description": "scc",
    "bundleDependencies": [
      "compression",
      "cors",
      "errorhandler",
      "loopback",
      "loopback-boot",
      "loopback-connector-rethinkdb",
      "loopback-datasource-juggler",
      "loopback-explorer",
      "serve-favicon"
    ]
  }

我错过了什么吗?

根据较高的 wid 值,您的应用似乎反复崩溃并重新启动。

使用 slc ctl -C <xxx> log-dump 1 检查日志以了解原因,这应该可以帮助您起床 运行。