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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With