Giter Site home page Giter Site logo

sentry's Introduction

dokku-sentry

Deploy Sentry 8.x on dokku with official postgres and redis plugins.

This setup uses uWSGI as master process for all the child processes needed to properly run Sentry:

; uwsgi.ini
[uwsgi]
master = true
attach-daemon = sentry start
attach-daemon = sentry celery worker
attach-daemon = sentry celery beat

; Run nightly cron
cron = 0 3 -1 -1 -1 sentry cleanup --days=90

Instructions:

Install dokku plugins

Go to your dokku server and install following plugins:

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

Prepare dokku

  1. Create dokku app
ssh dokku@yourserver apps:create sentry
  1. Create postgresql db and link it to the app
ssh dokku@yourserver postgres:create sentry
ssh dokku@yourserver postgres:link sentry sentry
  1. Create redis instance and link it to the app
ssh dokku@yourserver redis:create sentry
ssh dokku@yourserver redis:link sentry sentry
  1. Add SENTRY_CONF to env vars
ssh dokku@yourserver config:set sentry SENTRY_CONF=./

Clone and deploy

  1. Clone this repository locally
git clone https://github.com/darklow/dokku-sentry.git
cd dokku-sentry
  1. Add remote dokku
git remote add dokku dokku@yourserver:sentry
  1. 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.

After migrations you will be prompted to create initial user.

ssh -t dokku@yourserver run sentry "sentry upgrade"
  1. Create user (Optional). Use this step if you skipped it in the previous command.
ssh -t dokku@yourserver run sentry "sentry createuser"

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

Customize sentry config

You can customise sentry.conf.py to fit your needs. However you can also override any config variable using dokku env vars. Use SC_ prefix (as of Sentry Config) to override specific sentry config variables. For example:

ssh dokku@yourserver config:set sentry SC_EMAIL_HOST=mail.yourserver.com [email protected] SC_EMAIL_HOST_PASSWORD=XYZ123 [email protected] SC_EMAIL_USE_TLS=True

Notes

To run sentry help and other commands:

ssh dokku@yourserver run sentry "sentry help"

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 -t

sentry's People

Contributors

darklow avatar adatheleader avatar

Watchers

James Cloos avatar Eugene Khashin avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.