I
I
Ivan Yakushenko2019-03-26 22:38:51
Python
Ivan Yakushenko, 2019-03-26 22:38:51

Why doesn't Python run on Heroku?

There is the most simple application that displays "Hello World". requirements.txt is, in Procfile.txt:

web: python main.py

All files on the server, git says:
nothing added to commit

In the Heroku web interface under Resources:
This app has no process types yet

Error in logs:
2019-03-26T19:31:23.301424+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=******** .herokuapp.com request_id=10212ad7-0fcb-4141-8292-b9065cb278f9 fwd="31.129.75.92" dyno= connect= service= status=503 bytes= protocol=https

In the FAQ, the solution to problem H14 is to run heroku ps:scale web=1. Trying to run it throws an error:
Scaling dynos... !
! Couldn't find that process type (web).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2019-04-22
@2ord

1. Firstly, the application must be a web application running over HTTP, and not a simple console application.
2. Rename Procfile.txt to Procfile
3. Read https://devcenter.heroku.com/articles/getting-star...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question