Skip to content

Instantly share code, notes, and snippets.

@yesmeck
Forked from ebuildy/gist:5d4ad0998848eaefdad8
Created January 29, 2016 13:37
Show Gist options
  • Save yesmeck/947d19a82360c764d3e6 to your computer and use it in GitHub Desktop.
Save yesmeck/947d19a82360c764d3e6 to your computer and use it in GitHub Desktop.
Setup sentry logger on a fresh Ubuntu server
sudo apt-get update
sudo apt-get install python-virtualenv libxslt1-dev libxml2
sudo apt-get install python-dev
sudo apt-get install postgresql
sudo apt-get install postgresql-server-dev-9.3
sudo apt-get install redis-server
sudo -u postgres createuser -s sentry
sudo -u postgres psql -c "alter user sentry with password 'sentry';"
sudo nano /etc/postgresql/9.3/main/pg_hba.conf
# local sentry md5
sudo service postgres restart
sudo virtualenv /www/sentry/
sudo easy_install -UZ sentry[postgres]
sudo sentry init # This will create "/home/tom/.sentry/sentry.conf.py"
sudo nano .sentry/sentry.conf.py # Set postgres connection sentry / sentry
createdb -E utf-8 sentry
sentry --config=/home/tom/.sentry/sentry.conf.py upgrade
sentry --config=/home/tom/.sentry/sentry.conf.py createsuperuser
sentry --config=/home/tom/.sentry/sentry.conf.py repair --owner=<username>
sentry --config=/home/tom/.sentry/sentry.conf.py start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment