Setup
-
Create a new user on the system:
sudo adduser --system --group --shell /bin/bash --home /opt/sentry sentry
-
Create the virualenv and install the required packages:
sudo -u sentry virtualenv /opt/sentry sudo -u sentry /opt/sentry/bin/pip install sentry
-
Place the upstart configs in
/etc/init
. -
Place the nginx config in
/etc/nginx/sites-available
. Then symlink to/etc/nginx/sites-enabled
. -
Initialize sentry (run as the
sentry
user):cd /opt/sentry source bin/activate sentry init /opt/sentry/sentry.conf.py vi /opt/sentry/sentry.conf.py # Edit the sentry configuration export SENTRY_CONF=/opt/sentry/sentry.conf.py sentry upgrade sentry createsuperuser sentry repair --owner=<superuser>