在他们所有的教程Getting started with LoopBack中,他们都是用$ slc start来启动应用程序的。我一步一步地按照教程操作,但我的应用程序不是从$ slc start开始的。我的意思是,服务器localhost:3000不是通过命令启动的。但是,它以$ slc run开头。为什么会发生这种情况?为什么$ slc start不能工作,但他们到处都在使用它?
这是我运行$ slc start时的输出,它不起作用。“页面不可用”:
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当我检查状态时,它显示由于某种原因而停止:
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 .的输出:
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 } ]发布于 2015-04-24 00:01:13
slc start用于启动进程管理器下的应用程序。我们建议使用node .启动应用程序(slc run无论如何都是node .的别名)。我已经要求我们的文档人员相应地更新所有的参考资料。
发布于 2015-04-24 01:13:49
实际上,我们更改了LoopBack文档,使用node . everywhere启动应用程序,而不是slc start。使用node .更适合在本地系统上进行开发,因为它可以为您提供即时反馈、错误跟踪等。显然,我们在操作之后立即进行了此更改。
使用slc start可用于配置群集并在压力控制下运行应用程序
随机
https://stackoverflow.com/questions/29601129
复制相似问题