Heroku New Relic Procfile command not working

I am trying to add a new relic to my application, but I get this error:

at=error code=H10 desc="App crashed" 

The error comes from the Procfile line where I declare the web process. I followed the documentation, which states here and here that the process should be declared as follows:

 web: newrelic-admin run-program python manage.py run_gunicorn -b "0.0.0.0:$PORT" -w 3 

This does not work.

How can I declare a web process in Procfile for New Relic to work?

I am using Django.

+6
source share
1 answer

Ok I found that if I declare a web process as follows, it works:

 web: newrelic-admin run-program gunicorn appname.wsgi 

I will not mark this question as the accepted reason for the answer in the documents here , he writes that this line is for "Flask with the Embedded Development Server". Therefore, this is a temporary solution, in any case, perhaps it helps someone.

+2
source

Source: https://habr.com/ru/post/989640/


All Articles