Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Rootユーザに変更
sudo su -
# virtualenvインストール
pip install -U virtualenv
virtualenv /www/sentry/
source /www/sentry/bin/activate
# posgre版sentryインストール
pip install -U sentry[mysql]
# sentry初期configファイル作成
sentry init /etc/
# 作成されていることを確認
ls -al /etc/
-rw-r--r--. 1 root root 5743 Apr 6 23:17 /etc/
# djangoプロジェクトの設定ファイルですが、デフォルトはSQLiteが設定されています。
vim /etc/
#--- /etc/ 編集 start -----------------------------------------------
'default': {
# You can swap out the engine for MySQL easily by changing this value
# to ``django.db.backends.mysql`` or to PostgreSQL with
# ``django.db.backends.postgresql_psycopg2``
# If you change this, you'll also need to install the appropriate python
# package: psycopg2 (Postgres) or mysql-python
#'ENGINE': 'django.db.backends.sqlite3',
'ENGINE': 'django.db.backends.mysql',
#'NAME': os.path.join(CONF_ROOT, 'sentry.db'),
'NAME': 'sentry',
'USER': 'sentry',
'PASSWORD': 'sentry',
'HOST': 'localhost',
'PORT': '3306',
'workers': 3, # the number of gunicorn workers
'secure_scheme_headers': {'X-FORWARDED-PROTO': 'https'}, # detect HTTPS mode from X-Forwarded-Proto header
#--- /etc/ 編集 end -------------------------------------------------
# sentry起動
sentry --config=/etc/ start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.