Skip to content

Commit

Permalink
Add SENTRY_CONF to env
Browse files Browse the repository at this point in the history
  • Loading branch information
darklow committed Jan 30, 2016
1 parent 929948a commit e9b5f2a
Showing 1 changed file with 32 additions and 17 deletions.
49 changes: 32 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Deploy [Sentry](https://github.com/getsentry/sentry) 8.x on [dokku](http://dokku
Go to your dokku server and install following plugins:


1. Install official **postgresql** plugin
1) Install official **postgresql** plugin
```
sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres
```
2. Install official **redis** plugin
2) Install official **redis** plugin
```
sudo dokku plugin:install https://github.com/dokku/dokku-redis.git redis
Expand All @@ -21,60 +21,75 @@ sudo dokku plugin:install https://github.com/dokku/dokku-redis.git redis
## Setup dokku


1. Create dokku app
1) Create dokku app
```
ssh dokku@yourserver apps:create sentry
```

2. Create postgresql db and link it to the app
2) Create postgresql db and link it to the app
```
ssh dokku@yourserver postgres:create sentry
ssh dokku@yourserver postgres:link sentry sentry
```

3. Create redis instance and link it to the app
3) Create redis instance and link it to the app
```
ssh dokku@yourserver redis:create sentry
ssh dokku@yourserver redis:link sentry sentry
```

4. Add remote dokku
4) Add SENTRY_CONF to env vars
```
ssh -t dokku@yourserver config:set sentry SENTRY_CONF=./
```

5) Add remote dokku
```
git remote add dokku dokku@yourserver:sentry
```

5. Deploy app
6) Deploy app
```
git push dokku
```

## Setup sentry

After you have sucessfully deployed app to dokku, run following commands to finish installing sentry:

1. Create database schema.
1) Create database schema.

In the end you will be prompted to create initial user.
After migrations you will be prompted to create initial user.

```
ssh -t dokku@yourserver run sentry "sentry --config=sentry.conf.py upgrade"
ssh -t dokku@yourserver run sentry "sentry upgrade"
```

2. Create user (Optional). Use this step if you skipped it in the previous command.
```
ssh -t dokku@yourserver run sentry "sentry --config=sentry.conf.py createuser"
ssh -t dokku@yourserver run sentry "sentry createuser"
```

VOILÀ! Open your dokku app url, login and enjoy Sentry!
**VOILÀ!** Open your dokku app url, login and enjoy Sentry!



## Notes

To run sentry help and other commands:

## Debug
```
ssh dokku@yourserver run sentry "sentry help"
```

If something goes wrong you can use dokku logs:
To enable console prompt use `-t`

```
ssh -t dokku@yourserver run sentry "sentry"
```

If something goes wrong you can use dokku logs to debug:

```
ssh dokku@yourserver logs sentry
```
```

0 comments on commit e9b5f2a

Please sign in to comment.