node.js - Heroku deployment crashing at start Nodejs -


i trying deploy existing nodejs application heroku. followed process listed in documentation.

i wrote on procfile:

web: node ./bin/www 

but getting:

process exited status 1 2016-08-08t11:07:54.028983+00:00 heroku[web.1]: state changed starting crashed 2016-08-08t11:07:56.852268+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path="/" host=agile-headland-49936.herokuapp.com request_id=357f1a83-adff-4353-8e6b-6f8166cdb09b fwd="202.166.207.112" dyno= connect= service= status=503 bytes=

web: node ./bin/www gives me hint making express app. package.json might have like:

"scripts": {     "test": "echo \"error: no test specified\" && exit 1",     "start": "node ./bin/www"  } 

you can place web: npm start in procfile. should work. hope helps :)


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -