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 for changes. The poll-interval option allows you to specify how often the supervisor should poll for changes.
Getting ready
To complete this recipe, you will need the rhc command-line client installed on your machine. Please refer to the Installing...