O'Reilly logo

OpenShift Cookbook by Shekhar Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the use_npm marker

OpenShift uses the node-supervisor module to run your Node apps, but you can also tell OpenShift to use the npm start command to run the application. In this recipe, you will learn how to do that.

Getting ready

To complete this recipe, you will need the rhc command-line client installed on your machine. Please refer to the Installing the OpenShift rhc command-line client recipe in Chapter 1, Getting Started with OpenShift, for details. This application will consume one gear, so if you don't have an extra gear available for this recipe, use the rhc delete app <app_name> --confirm command to delete an existing application. To run this application on your local machine, you will need Node installed on your machine. You can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required