slc ctl command provides sub-commands to set and view the values of variables in the StrongLoop Process Manager (PM) environment.
Setting and viewing environment variables with Arc
To view environment variable settings on a remote host, first connect to Process Manager running on the host.
Then click on the inverted triangle next to the host name and choose Edit host environment.
You'll see a list of the environment variables defined in that Process Manager's environment:
To add a new environment variable for the selected Process Manager:
- Click Add Variable
- Enter the environment variable name and value.
- Click Save.
Setting and viewing environment variables with slc
slc ctl env-get to view all environment variables for a StrongLoop Process Manager environment. For example:
The license key string in the example above was truncated for brevity.
slc ctl env-set to set the value of one or more StrongLoop PM environment variables. When you set the value, StrongLoop PM automatically restarts the application it is managing with that new value. This enables you to set the value "on the fly" without redeploying the application.
See slc ctl command reference for details.
For example, for a local application with service name my-app:
To set more than one variable, separate them with a space:
For a remote application:
|Path to the SSH private key to use when connecting with |
|SSH_PORT||port to use with |
|SSH_USER||Username when connecting with |
|STRONG_AGENT_LICENSE||Deprecated. Use STRONGLOOP_LICENSE instead.|
|The number of workers the supervisor process will create. Determines the default cluster size if you don't provide an argument to |
Your StrongLoop license key(s). Separate multiple license keys with a colon (
|STRONGLOOP_METRICS||Metrics URL. For more information, see Monitoring with slc.|
|STRONGLOOP_PM||Control channel or Process Manager URL to use. For a remote Process Manager, this must specify the URL on which the Process Manager is listening. See the slc ctl -C option for more information.|
Set to the user name and password for secure access with HTTP authentication with the format STRONGLOOP_PM_HTTP_AUTH=username:password.
See Securing Process Manager for more information.