首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么StrogLoop不用"$ slc start“来启动应用程序?

为什么StrogLoop不用"$ slc start“来启动应用程序?
EN

Stack Overflow用户
提问于 2015-04-13 16:38:48
回答 2查看 753关注 0票数 1

在他们所有的教程Getting started with LoopBack中,他们都是用$ slc start来启动应用程序的。我一步一步地按照教程操作,但我的应用程序不是从$ slc start开始的。我的意思是,服务器localhost:3000不是通过命令启动的。但是,它以$ slc run开头。为什么会发生这种情况?为什么$ slc start不能工作,但他们到处都在使用它?

这是我运行$ slc start时的输出,它不起作用。“页面不可用”:

代码语言:javascript
复制
C:\Users\user\sbox\strongloop\hello>slc start .
App `.` started under local process manager.
  View the status:  slc ctl status
  View the logs:    slc ctl log-dump
  More options:     slc ctl -h

当我检查状态时,它显示由于某种原因而停止:

代码语言:javascript
复制
C:\Users\user\sbox\strongloop\hello>slc ctl status
manager:
  pid:                4764
  port:               8701
  base:               C:\Users\user\.strong-pm
current:
  status:             stopped
  link:               C:\Users\user\sbox\strongloop\hello
  current:            hello
  branch:             local-directory
  worker count:       0

下面是启动服务器的$ slc run .的输出:

代码语言:javascript
复制
C:\Users\user\sbox\strongloop\hi>slc run .
INFO strong-agent API key not found, StrongOps dashboard reporting disabled.
Generate configuration with:
    npm install -g strongloop
    slc strongops
See http://docs.strongloop.com/strong-agent for more information.
supervisor running without clustering (unsupervised)
Browse your REST API at http://localhost:3000/explorer
Web server listening at: http://localhost:3000/
Models created:
 [ { name: 'Bel Cafe', city: 'Vancouver', id: 1 },
  { name: 'Three Bees Coffee House', city: 'San Mateo', id: 2 },
  { name: 'Caffe Artigiano', city: 'Vancouver', id: 3 } ]
EN

回答 2

Stack Overflow用户

发布于 2015-04-24 00:01:13

slc start用于启动进程管理器下的应用程序。我们建议使用node .启动应用程序(slc run无论如何都是node .的别名)。我已经要求我们的文档人员相应地更新所有的参考资料。

票数 0
EN

Stack Overflow用户

发布于 2015-04-24 01:13:49

实际上,我们更改了LoopBack文档,使用node . everywhere启动应用程序,而不是slc start。使用node .更适合在本地系统上进行开发,因为它可以为您提供即时反馈、错误跟踪等。显然,我们在操作之后立即进行了此更改。

使用slc start可用于配置群集并在压力控制下运行应用程序

随机

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29601129

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档