Skip to content

Instantly share code, notes, and snippets.

@klebercode
Forked from pydanny/newrelic-heroku.rst
Created January 9, 2020 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klebercode/93909dc9ff992c4b5e6a67d4db1efadb to your computer and use it in GitHub Desktop.
Save klebercode/93909dc9ff992c4b5e6a67d4db1efadb to your computer and use it in GitHub Desktop.
Getting New Relic onto a Heroku Django app

Get the Python library:

pip install newrelic

Add this to your ProcFile:

web: newrelic-admin run-program python cn_project/manage.py run_gunicorn -b "0.0.0.0:$PORT" -w 3 --settings=settings.prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment