Skip to content

Commit 53972a7

Browse files
committed
Merge pull request #2432 from getsentry/docs
Update installation directions to match 8.0.0
2 parents 2270180 + 760fa0e commit 53972a7

File tree

6 files changed

+49
-30
lines changed

6 files changed

+49
-30
lines changed

docs/beacon.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The following information is reported:
1515

1616
- A unique installation ID
1717
- The version of Sentry
18-
- A technical contact email (``SENTRY_ADMIN_EMAIL``)
18+
- A technical contact email (``system.admin-email``)
1919
- General anonymous statistics on the data pattern (such as the number of
2020
users)
2121
- Names and version of the installed Python modules

docs/config.rst

+5-10
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,12 @@ Configuring Sentry
44
This document describes additional configuration options available to the
55
Sentry server itself.
66

7-
.. describe:: SENTRY_URL_PREFIX
8-
9-
Absolute URL to the sentry root directory. Should not include a
10-
trailing slash.
11-
12-
Defaults to ``""``.
13-
14-
::
15-
16-
SENTRY_URL_PREFIX = 'http://sentry.example.com'
7+
First Install
8+
-------------
179

10+
During a new install, you will be prompted first for a walkthrough of the
11+
Installation Wizard. This wizard will help you get a few essential configuration
12+
options taken care of before beginning.
1813

1914
Authentication
2015
--------------

docs/faq.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ This document covers some frequently asked questions that come up.
88
My sentry is running at **example.com:9000** but whenever I visit it I get
99
redirected to **example.com**.
1010

11-
You likely have not correctly configured **SENTRY_URL_PREFIX**. See
11+
You likely have not correctly configured **system.url-prefix**. See
1212
:doc:`config` for more information.
1313

1414
.. class:: qa
1515

1616
AJAX requests do not seem to work properly.
1717

18-
It's likely you have not correctly configured **SENTRY_URL_PREFIX**, so
18+
It's likely you have not correctly configured **system.url-prefix**, so
1919
you're hitting CORS issues. See :doc:`config` for more information.
2020

2121
.. class:: qa

docs/installation.rst

+36-12
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,30 @@ via ``sentry``, and get something like the following:
104104
.. code-block:: bash
105105
106106
$ sentry
107-
usage: [SENTRY_CONF=/path/to/settings.py] sentry [command] [options]
107+
Usage: sentry [OPTIONS] COMMAND [ARGS]...
108+
109+
Sentry is cross-platform crash reporting built with love.
110+
111+
Options:
112+
--config PATH Path to configuration files.
113+
--version Show the version and exit.
114+
--help Show this message and exit.
115+
116+
Commands:
117+
celery Start background workers.
118+
cleanup Delete a portion of trailing data based on...
119+
config Manage runtime config options.
120+
createuser Create a new user.
121+
devserver Start a light Web server for development.
122+
django Execute Django subcommands.
123+
export Exports core metadata for the Sentry...
124+
help Show this message and exit.
125+
import Imports data from a Sentry export.
126+
init Initialize new configuration directory.
127+
repair Attempt to repair any invalid data.
128+
shell Run a Python interactive interpreter.
129+
start Start running a service.
130+
upgrade Perform any pending database migrations and...
108131
109132
110133
Installing from Source
@@ -141,12 +164,16 @@ Initializing the Configuration
141164
Now you'll need to create the default configuration. To do this, you'll
142165
use the ``init`` command You can specify an alternative configuration path
143166
as the argument to init, otherwise it will use the default of
144-
``~/.sentry/sentry.conf.py``.
167+
``~/.sentry``.
145168

146169
::
147170

148171
# the path is optional
149-
sentry init /www/sentry/sentry.conf.py
172+
sentry init /etc/sentry
173+
174+
Starting with 8.0.0, ``init`` now creates two files, ``sentry.conf.py`` and
175+
``config.yml``. To avoid confusion, ``config.yml`` will slowly be replacing
176+
``sentry.conf.py``, but right now, the uses of ``config.yml`` are limited.
150177

151178
The configuration for the server is based on ``sentry.conf.server``, which
152179
contains a basic Django project configuration, as well as the default
@@ -170,9 +197,6 @@ not a fully supported database and should not be used in production**.
170197
}
171198
}
172199

173-
# No trailing slash!
174-
SENTRY_URL_PREFIX = 'http://sentry.example.com'
175-
176200

177201
Configure Redis
178202
---------------
@@ -243,14 +267,14 @@ Once done, you can create the initial schema using the ``upgrade`` command:
243267

244268
.. code-block:: python
245269
246-
$ SENTRY_CONF=/www/sentry/sentry.conf.py sentry upgrade
270+
$ SENTRY_CONF=/etc/sentry sentry upgrade
247271
248272
Next up you'll need to create the first user, which will act as a superuser:
249273

250274
.. code-block:: bash
251275
252276
# create a new user
253-
$ SENTRY_CONF=/www/sentry/sentry.conf.py sentry createuser
277+
$ SENTRY_CONF=/etc/sentry sentry createuser
254278
255279
All schema changes and database upgrades are handled via the ``upgrade``
256280
command, and this is the first thing you'll want to run when upgrading to
@@ -271,7 +295,7 @@ To start the built-in webserver run ``sentry start``:
271295

272296
::
273297

274-
SENTRY_CONF=/www/sentry/sentry.conf.py sentry start
298+
SENTRY_CONF=/etc/sentry sentry start
275299

276300
You should now be able to test the web service by visiting `http://localhost:9000/`.
277301

@@ -283,7 +307,7 @@ in addition to the web service workers:
283307

284308
::
285309

286-
SENTRY_CONF=/www/sentry/sentry.conf.py sentry celery worker -B
310+
SENTRY_CONF=/etc/sentry sentry celery worker -B
287311

288312
See :doc:`queue` for more details on configuring workers.
289313

@@ -358,7 +382,7 @@ go.
358382

359383
[program:sentry-web]
360384
directory=/www/sentry/
361-
environment=SENTRY_CONF="/www/sentry/sentry.conf.py"
385+
environment=SENTRY_CONF="/etc/sentry"
362386
command=/www/sentry/bin/sentry start
363387
autostart=true
364388
autorestart=true
@@ -368,7 +392,7 @@ go.
368392

369393
[program:sentry-worker]
370394
directory=/www/sentry/
371-
environment=SENTRY_CONF="/www/sentry/sentry.conf.py"
395+
environment=SENTRY_CONF="/etc/sentry"
372396
command=/www/sentry/bin/sentry celery worker -B
373397
autostart=true
374398
autorestart=true

docs/nginx.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ confused)::
9595
Create a uWSGI configuration which references the Sentry configuration::
9696

9797
[uwsgi]
98-
env = SENTRY_CONF=/etc/sentry.conf.py
98+
env = SENTRY_CONF=/etc/sentry
9999
module = sentry.wsgi
100100

101101
; spawn the master and 4 processes with 8 threads each
@@ -171,6 +171,8 @@ One rewrite is still required before the location block [#f1]_::
171171
Subpath with Sentry's Default Webserver
172172
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
173173

174+
.. Note:: This method is unsupported and untested by the Sentry team.
175+
174176
This is a bit more involved and harder to debug because not only does Nginx have to know the new location to listen for, it also must do rewriting of the urls it sends to the Sentry's built in server because it knows nothing about you trying to host the application elsewhere.
175177

176178
These are not full configurations, but abbreviated versions to highlight the differences from the main examples.
@@ -199,9 +201,7 @@ Your Sentry settings file ($SENTRY_CONF python file)::
199201

200202
...
201203

202-
SENTRY_URL_PREFIX = 'http://yourdomain.com/sentry'
203204
FORCE_SCRIPT_NAME = '/sentry'
204-
205205
...
206206

207207
.. rubric:: Footnotes

docs/performance.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ uWSGI yourself by doing something along the lines of::
4141
stopwaitsecs=10
4242
stopasgroup=true
4343
killasgroup=true
44-
environment=SENTRY_CONF="/srv/www/getsentry.com/current/getsentry/settings.py"
44+
environment=SENTRY_CONF="/etc/sentry"
4545
directory=/srv/www/getsentry.com/current/
4646
stdout_logfile syslog
4747
stderr_logfile syslog
@@ -130,7 +130,7 @@ look to supervisord for managing this for us::
130130
stopwaitsecs=10
131131
stopasgroup=false
132132
killasgroup=true
133-
environment=SENTRY_CONF="/srv/www/getsentry.com/current/getsentry/settings.py"
133+
environment=SENTRY_CONF="/etc/sentry"
134134
directory=/srv/www/getsentry.com/current/
135135

136136

0 commit comments

Comments
 (0)