Configuring Node supervisor options

As mentioned in the Creating your first Node.js application recipe, OpenShift uses the node-supervisor module to run your programs. In this recipe, you will learn how you can configure node-supervisor options. If you have the node-supervisor module installed on your machine, you can see all the supported options by running the following command. You can install node-supervisor by executing the npm install supervisor -g command. The help option can be viewed using the following command:

$ supervisor --help

OpenShift allows you to configure the node-supervisor watch and poll-interval options. The watch option allows you to specify a comma-delimited list of folders or JavaScript files that the supervisor watches ...

Get OpenShift Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.