使用 StrongLoop 的“slc run"和使用它有什么不同?和“节点 app.js" [英] What is the different between using StrongLoop's "slc run" and "node app.js"

查看:23
本文介绍了使用 StrongLoop 的“slc run"和使用它有什么不同?和“节点 app.js"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读 StrongLoop 的入门说明并创建了我的示例应用程序.虽然说明告诉我使用:

I'm working through the StrongLoop's getting started instructions and created my sample app. Whilst the instructions tell me to use:

slc run .

为了启动我的应用程序,我注意到我可以同样运行我的应用程序:

to start my application, I noticed I can equally run my application with:

节点 app.js

并得到相同的结果.显然,通过使用第二种方法,我可以将我的 StrongLoop 应用程序与诸如永远这样的工具集成.

and get the same result. Obviously by using the second approach I can integrated my StrongLoop application with tools such as forever.

所以我的问题是,slc run 提供了哪些额外的好处?是否有自动重启等功能?

So my question is, what extra benefits does slc run offer? Does it have functionalities such auto restart etc?

推荐答案

node app.js 相比,slc 可以做更多的事情.

You can do more with slc than node app.js.

slc 是 StrongLoop 的命令行工具,功能比较多.如果您只是想运行应用程序,那没有多大关系,但如果您想做更多,则可以.

slc is a command line tool for StrongLoop, which has more features. If you just want to run the app, it doesn't matter much, but if you want to do more, you can.

文档如下:http://docs.strongloop.com/display/SLC/StrongLoop+Controller

它没有太多的开发功能(例如自动重启等),但它有助于管理服务器等等.

It doesn't have much features for development (such as auto restart and such), but it will help with managing servers and what not.

这篇关于使用 StrongLoop 的“slc run"和使用它有什么不同?和“节点 app.js"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆