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
Post a Comment