Skip to content

./bin/www issue with github commit and deployment #261

@vickyRathee

Description

@vickyRathee

Expressjs default template has .bin/www to start the node js app. But bin folder is never committed to github (I can't find anyway until now).

So my codeCommit pipeline fails -

-------------------------------------
/var/log/nodejs/nodejs.log
-------------------------------------
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myApp@0.0.0 start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the myApp@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

image

Should I delete the bin folder and rename www with server.js ? What exactly the www does? If I put it on main directory with rename..Will it cause any problem?

Or anyway to push it on git commit?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions