node.js - openshift with nodejs isn't respecting the path to my server file in package.json -
i have been working on node.js server , uploading openshift. not using default ./server.js file, rather, insertion point ./bin/www.
i have set insertion file in package.json so:
{ "name": "nekolist", "version": "0.0.0", "private": true, "scripts": { "start": "./bin/www" ... },
i can verify www
in ./bin
directory, , valid javascript file functions on local environment.
this according here
however, can tell logs openshift still trying find ./server.js
what might going on here? other information can post helpful?
note: related problem in this thread, but, when realized problem not dependency issue, decided create new thread real issue.
you using "scripts"
property, on openshift need use "main"
instead. because openshift uses node-supervisor startup , manage node.js application.
Comments
Post a Comment