0

I'm quite puzzled as to why my app is crashing when deployed to Heroku.

The error is

Failed at the [email protected] start script. 

Where my start script is

"start": "node app.js"

because app.js is where it is all initialised (in the same place as package.json, of course).

My app works perfectly fine locally, i.e. it starts app.js and successfully runs, so what could be causing this issue remotely?

2
  • This is nowhere near enough information to help you unfortunately Commented Dec 12, 2017 at 15:52
  • What should I include? The app.js is very long so I didn't think I should add that Commented Dec 12, 2017 at 15:53

1 Answer 1

1

You must sure that you write "start": "node app.js" inside the script. Because Heroku Read this Scripts to start the nodejs Server i.e

"scripts": {
"start":"node app.js" 
"test": "echo \"Error: no test specified\" && exit 1"  }
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.