【发布时间】:2015-06-04 20:11:21
【问题描述】:
我在使用 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
【问题讨论】:
-
在应用目录中运行
slc pm可能会导致问题,因为它会导致部署的应用看到该应用的依赖项。对于您正在尝试做的事情,您可能应该从您的主目录运行它。
标签: node.js loopbackjs strongloop