strongloop / strong-pm

deployer for node applications
http://strong-pm.io
Other
1k stars 71 forks source link

service-manager: allow application port to be set #250

Closed sam-github closed 9 years ago

sam-github commented 9 years ago

Normally, pm sets PORT to a value guaranteed to be different for each app, so that multiple apps can be run without their ports colliding. However, some apps may require being run on a specific port. This is supported by doing a

slc ctl env-set <SVC> PORT=<X>

Where X is the port that should be used. If this port is already used, then the app will immediately crash, but that's a configuration problem under the user's control.

rmg commented 9 years ago

LGTM, I like it.

rmg commented 9 years ago

In hindsight, this seems so obvious I'm not sure why it wasn't the original behaviour.

superkhau commented 9 years ago

+1