From e9b5f2a87680e1946e5094c881c691e4a83a122b Mon Sep 17 00:00:00 2001 From: Kaspars Sprogis Date: Sat, 30 Jan 2016 15:11:17 +0200 Subject: [PATCH] Add SENTRY_CONF to env --- README.md | 49 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 5ec7f46..47cb7e6 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 -``` \ No newline at end of file +```