Description of problem: A user on IRC pointed out that our KB article is no longer valid: https://openshift.redhat.com/community/kb/kb-e1048-how-can-i-run-my-own-nodejs-script Sure enough, the file ~/{appName}/conf/node.env no longer exists. Even if I wrote one to use node_app=myserver.js, and restart the app, it will still try to call server.js. The user tried changing ~/{appName}/repo/package.json to: "main": "myserver.js" It will still execute server.js How do I change it?
node.env has been deprecated w/ the support for package.json. The way to get this working is to add the following to your package.json: "scripts": { "start": "node <relative-path-from-repo-dir>/myserver.js" }, That would start node up and use myserver.js as the script to run.