1

I am trying to upload my local MEAN stack based web application to my Heroku server. I have updated my code in Bitbucket and have successfully done the Heroku deployment part. But, the web app is still not live. When I hit the page, I am getting something like this:

application error

I then checked the logs by firing 'heroku logs' but I am unable to understand what the logs are trying to ask for. I am sharing the logs below:

heroku logs

As I understand it, the application was unable to find "start" but I have later exclusively added "start" : "node app.js" but I still don't see any difference in the heroku logs or in the heroku link.

Can anyone help with what am I doing wrong here?

here's my package.json file

{
  "start": "node app.js",
  "name": "PerosnalPro",
  "version": "1.0.0",
  "description": "Personal website using dynamic routing and responsive design.",
  "main": "app.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Mikey",
  "license": "ISC",
  "dependencies": {
    "dotenv": "^1.2.0",
    "ejs": "^2.3.4",
    "express": "^4.13.3",
    "morgan": "^1.6.1",
    "serve-favicon": "^2.3.0",
    "slick-carousel": "^1.5.9"
  },
  "devDependencies": {},
  "repository": {
    "type": "git",
    "url": "git+https://[email protected]/username/projectname"
  },
  "homepage": "https://bitbucket.org/username/projectname"
}
6
  • 2
    Just to clarify, you added the missing start like this AND you pushed the change to heroku? Commented Jul 30, 2017 at 10:44
  • Yup the same way and exactly used the same reference @gino Commented Jul 30, 2017 at 11:10
  • share you package.json Commented Jul 30, 2017 at 13:43
  • @mehta-rohan - update the question Commented Jul 30, 2017 at 14:54
  • @Gino was right too. Commented Jul 30, 2017 at 15:20

1 Answer 1

1
"scripts": {
     "start" : "node app.js", 
     "test": "echo \"Error: no test specified                   \" && exit 1"
 }

Add your start tag in scripts. :)

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a ton Rohan - you saved the day for me. thanks alot.

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.