Home > Software design >  git push heroku master Remote failed
git push heroku master Remote failed

Time:04-18

This is my error image getting on heroku logs --tail

above is a given image of my errors. When I am trying to deploy my nodejs app Getting error on git push Heroku master . . . . Remote failed working properly on local server. I am beginner please help my git id is cosmos-dx and there is a git repo of name Webdictionary

CodePudding user response:

After reading through the nodemon docs, and taking the fact that you stated you are new, I think I know what is happening.

In the nodemon docs it gives you two ways to install, one is globally npm install -g nodemon and the other is to install it in the dev dependencies npm install --save-dev nodemon. Either of these options would make nodemon not be present if the build to heroku uses npm install --only=production. I assume they do that.

In your package.json file, change the npm start script to this:

"start": "node ser1.js"

As nodemon is not present in the heroku built application, your current start script will fail. If you want to continue using nodemon for local development you can add a new script:

"dev": "nodemon ser1.js"

From there to run your application, with nodemon, on your local machine you would run npm run dev

  • Related