You can name your main script whatever you want, as long as the contents of your package.json
file accurately describes your recommended server init process
I've written up a blog post that outlines the two main steps for getting your Node.js project to run on OpenShift:
- Update your
package.json
file, documenting your server init process (main, scripts.start). - Adapt your code to rely on environment variables for runtime configuration details: server ip, port, domain name, db passwords, and other custom tokens
Make sure to document your preferred deployment process in your project's README file as well