MACMAN
MACMAN

Reputation: 1971

Heroku Deployment App Crashing with Error Code H10

I am facing an issue while deploying reactioncommerce to heroku. On checking the error log the error code is H10. The error log shows

 npm ERR! missing script: start.

I don't have any clue to resolve the issue. Can anybody point me into the right direction? Thanks.

Upvotes: 0

Views: 185

Answers (2)

Hokhy Tann
Hokhy Tann

Reputation: 1248

I know this is already too late to answer, but for some other who may end up being here. The error message state clearly that the start script is missing. You can simply add start script to your package.json file. "start": "node app.js"

Upvotes: 1

Nathan Loyer
Nathan Loyer

Reputation: 1349

This should be in your package.json under the scripts category. See this article: https://devcenter.heroku.com/articles/deploying-nodejs#specifying-a-start-script

You should also create a Procfile which is described in a link from the above linked article.

Upvotes: 1

Related Questions