Run a Node application (including a LoopBack application) under control of StrongLoop PM to:
- View CPU profiles and heap snapshots to optimize performance and diagnose memory leaks.
- Keep processes and clusters alive forever.
- View performance metrics.
- Run the app as a cluster of Node processes.
For more information, see Using Process Manager.
To run an app locally under control of StrongLoop Process Manager:
<app-root-dir> is the application's root directory.
This starts a local instance of StrongLoop Process Manager (StrongLoop PM) and runs the specified application under its control. If PM is unable to start the application, it will periodically try to start the app until the PM is shut down.
StrongLoop PM will display some suggested commands, followed by information from the log file, for example:
You can also run an application from another directory. For example, if your application is in the
myApp directory under the current working directory:
To run an application remotely, use Process Manager; see Operating Node applications for more information.
To view the status of the application, use the
slc ctl command, which by default displays the status of the locally-running StrongLoop PM:
myapp is your application's service name (by default, the
name property in
To see log output (including error messages and a stack trace), use this command:
Stop the application with: