W
W
Wasya UK2018-03-11 17:10:04
git
Wasya UK, 2018-03-11 17:10:04

Why is the project not running on Heroku?

I'm trying to upload a project to heroku, but it doesn't work. What is the problem about?
Project here: https://github.com/Wasya1212/twitter-api-tweets
Logs:

2018-03-11T13:59:22.098711+00:00 heroku[web.1]: Starting process with command `npm start`
2018-03-11T13:59:23.921188+00:00 app[web.1]:
2018-03-11T13:59:23.921207+00:00 app[web.1]: > @1.0.0 start /app
2018-03-11T13:59:23.921209+00:00 app[web.1]: > node app
2018-03-11T13:59:23.921210+00:00 app[web.1]:
2018-03-11T13:59:24.395911+00:00 app[web.1]: WARNING: NODE_ENV value of 'production' did not match any deployment config
 file names.
2018-03-11T13:59:24.396973+00:00 app[web.1]: WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode
2018-03-11T13:59:24.581923+00:00 app[web.1]: Server work on port 3000...
2018-03-11T14:00:22.479521+00:00 app[web.1]: Error waiting for process to terminate: No child processes
2018-03-11T14:00:22.460672+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 6
0 seconds of launch
2018-03-11T14:00:22.460672+00:00 heroku[web.1]: Stopping process with SIGKILL
2018-03-11T14:00:22.522908+00:00 heroku[web.1]: Process exited with status 22
2018-03-11T14:00:22.692805+00:00 heroku[web.1]: State changed from starting to crashed
2018-03-11T14:00:24.683290+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=evening-w
ildwood-72825.herokuapp.com request_id=ad41d332-13d8-4e1d-b5cb-11d0372dd733 fwd="3195453.953.217.57" dyno= connect= service=
status=503 bytes= protocol=https
2018-03-11T14:00:25.143362+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" hos
t=evening-wildwood-72825.herokuapp.com request_id=3d0c2ab4-0a68-4646-8103-f035aab25b88 fwd="3195433.93.25417.57" dyno= connect
= service= status=503 bytes= protocol=https
2018-03-11T14:01:01.654499+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=evening-w
ildwood-72825.herokuapp.com request_id=7b1fdf5e-5aac-4870-8135-f01334a258e4 fwd="нету" dyno= connect= service=
status=503 bytes= protocol=https
2018-03-11T14:01:01.837412+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" hos
t=evening-wildwood-72825.herokuapp.com request_id=461684a0-ae3b-47c5-a51d-e78874e054b1 fwd="319534317.57" dyno= connect
= service= status=503 bytes= protocol=https

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-03-11
@dmc1989

You need to specify the server port through process.env.PORT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question