An open API service indexing awesome lists of open source software.

https://github.com/dulacp/sentry

Exception logger server
https://github.com/dulacp/sentry

Last synced: 2 months ago
JSON representation

Exception logger server

Awesome Lists containing this project

README

        

# Sentry instance

> Shit happens — Be on top of it.

## Automatic Deploy

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/dulaccc/sentry/tree/develop)

Then just create the superuser

```sh
$ heroku run sentry createsuperuser --app
$ heroku run sentry repair --owner= --app
```

## Manual Deploy

### Create the Heroku app

Create the app in the region you want

```sh
$ heroku create --region y-sentry
```

Then set the proper buildpack

```sh
$ heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
```

### Push the code

```
$ git push heroku master
```

### Set the required settings

> NB: using a protocol-less url like `//my-sentry.herokuapp.com` allows you to access the interface with both `http` and `https`.

```sh
$ heroku config:set SENTRY_URL_PREFIX="//my-sentry.herokuapp.com"
$ heroku config:set SENTRY_KEY=`openssl rand -base64 32`
$ heroku config:set SENTRY_CONF="sentry.conf.py"
```

### Add the services

```sh
$ heroku addons:add newrelic
$ heroku addons:add mandrill
$ heroku addons:add rediscloud
$ heroku addons:add heroku-postgresql:hobby-dev
```

### Run the migrations

```sh
$ heroku run sentry upgrade
```

### Create the superuser

```sh
$ heroku run sentry createsuperuser
$ heroku run sentry repair --owner=
```

### Maintain a clean database

Every now and then you will need to clean the engine

```sh
$ sentry --config=sentry.conf.py cleanup --days 60
```