Answer the question
In order to leave comments, you need to log in
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
nothing works
At first I thought
Then I decided
I remembered that
A few days I can not solve the problem,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question