Skip to content

Commit

Permalink
Fix redis env url parser
Browse files Browse the repository at this point in the history
  • Loading branch information
darklow committed Jan 30, 2016
1 parent b770102 commit d8b718b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
# dokku-sentry
Sentry on dokku

## Prepare dokku

Go to your dokku server and install following plugins:

```
# Install official postgresql plugin
sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres
# Install official redis plugin
sudo dokku plugin:install https://github.com/dokku/dokku-redis.git redis
```

# Setup

```
# Create dokku app
ssh dokku@katana apps:create sentry
# Create postgresql db and link it to the app
ssh dokku@katana postgres:create sentry
ssh dokku@katana postgres:link sentry sentry
# Create redis instance and link it to the app
ssh dokku@katana redis:create sentry
ssh dokku@katana redis:link sentry sentry
# Add remote dokku
git remote add dokku dokku@katana:sentry
# Deply
git push dokku
```
2 changes: 1 addition & 1 deletion sentry.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
SENTRY_REDIS_OPTIONS = {
'hosts': {
0: {
'host': redis_url_parts.host,
'host': redis_url_parts.netloc.split(':')[0],
'port': redis_url_parts.port,
}
}
Expand Down

0 comments on commit d8b718b

Please sign in to comment.