A
A
Artyom2020-03-06 22:06:59
Software Deployment
Artyom, 2020-03-06 22:06:59

Why won't my nodejs app deploy to heroku?

Wrote a nodejs application. It's very simple - it's a game. Only three routes. But when deploying the master branch from github to heroku, nothing works. At first I thought the error was that in my app.js file, the port is equal to 3000 replaced by , but it did not help. Then I decided that the point was that I kept the node_modules folder in this repository, deleted it and added it to the .gitignore file - it didn’t help. I remembered that in the package.json file in the start command I use nodemon, removed it and put "node app" - it did not help. I can not solve the problem for several days, please help. Here is the git repository: github.com/airman66/background-game const port = process.env.PORT || 3000;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2020-03-07
@airman66

nothing works

At first I thought

Then I decided

I remembered that

A few days I can not solve the problem,

And now when you've had enough trouble, go to the deployment/heroku logs and see what's going on, find and describe the real problem. Then repeat what you have already done.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question