Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 881
yunspace Avatar asked Dec 02 '22 20:12

yunspace


1 Answers

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.

like image 111
tpae Avatar answered Jan 17 '23 18:01

tpae