Search code examples
node.jsstrongloop

What is the different between using StrongLoop's "slc run" and "node app.js"


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:

node app.js

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

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


Solution

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

    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.

    Here's the documentation: 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.