无法使用StrongLoop Arc连接到StrongLoop PM

时间:2015-05-30 15:30:04

标签: node.js loopbackjs strongloop

我使用StrongLoop Arc连接到StongLoop PM时遇到问题。我跟随these directions

这是我尝试的内容:

# in one terminal window, I started up StrongLoop PM
$ nvm install v0.12.4
$ nvm alias default 0.12.4
$ npm install -g strongloop
$ slc loopback
> name: hello-strongloop
> directory: hello-strongloop
$ cd hello-strongloop
$ slc pm

# in another new terminal window, I started Arc
$ slc arc # enter login credentials, click process manager, and add pm host
> host: localhost
> port: 8701

按下"连接"图标,我在"应用状态"下得到一条消息。话说:

unknown exception: invalid
Unknown "ServiceInstance" id "undefined".

顺便提一下,第二个终端的输出是:

$ slc arc
Loading workspace /home/s/strongloop/hello-strongloop
Embedded Process Manager [(none)]:  starting
StrongLoop Arc is running here: http://localhost:60520/#/
slc arc: StrongLoop PM v3.2.0 (API v5.1.0) listening on port `47743`
slc arc: listen on 47743, work base is `/home/s/strongloop/hello-strongloop/.strong-pm`
Embedded Process Manager [28647]:  started
Embedded Process Manager [28647]:  using port 47743
loopback-datasource-juggler deprecated Model hook "ManagerHost.beforeCreate" is deprecated, use Operation hooks instead. http://docs.strongloop.com/display/LB/Operation+hooks ../../.nvm/versions/v0.12.4/lib/node_modules/strongloop/node_modules/loopback-datasource-juggler/lib/dao.js:270:9

1 个答案:

答案 0 :(得分:1)

您需要构建和部署Loopback应用程序(使用Arc),然后才能使用Arc管理进程。通过调用$ slc arc从项目目录启动Arc,然后从Web界面单击“构建和部署”。

您还需要从主目录运行$ slc pm,而不是项目目录。这将解决您在Arc中收到的错误消息的问题。