diff --git a/requirements.txt b/requirements.txt index 820ba76..5f01014 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,3 +14,4 @@ docutils django-redis==3.3 gunicorn==18.0 south==0.8.2 +newrelic diff --git a/server/upstart.conf b/server/upstart.conf index 53eb113..2076304 100644 --- a/server/upstart.conf +++ b/server/upstart.conf @@ -7,7 +7,8 @@ respawn limit 10 5 setuid www-data setgid www-data -exec /srv/dpaste.de/bin/python /srv/dpaste.de/bin/manage.py run_gunicorn \ +exec NEW_RELIC_CONFIG_FILE=/srv/dpaste.de/var/newrelic.ini \ + /srv/dpaste.de/bin/newrelic-admin run-program /srv/dpaste.de/bin/python /srv/dpaste.de/bin/manage.py run_gunicorn \ --user=www-data \ --group=www-data \ --workers=2 \