Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku. New Relic Procfile command doesn't work

I've been trying to add New Relic to my app 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 documentations which states here and here that the proccess should be declared like this:

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

It doesn't work.

How should I declare the web process in the Procfile for New Relic to work?

I'm using Django.

like image 607
Alejandro Veintimilla Avatar asked Jun 23 '15 19:06

Alejandro Veintimilla


1 Answers

Ok. I found that if I declare the web process like this, it works:

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

I will not mark this question as the accepted answer cause in the docs, here, it writes that that line is for "Flask with the built-in development server". Therefore this is a temporary solution, anyway, maybe it helps someone.

like image 76
Alejandro Veintimilla Avatar answered Oct 07 '22 19:10

Alejandro Veintimilla