From 807c4c3d74a16db5a2da7c9573ddfcdc8af562d3 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Sat, 30 Nov 2013 11:33:04 +0000 Subject: [PATCH] Added newrelic support --- requirements.txt | 1 + server/upstart.conf | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 \