Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wxcafé
funkwhale
Commits
d60804c9
Verified
Commit
d60804c9
authored
7 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Added raven on server side
parent
26028040
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.env.dev
+2
-0
2 additions, 0 deletions
.env.dev
api/config/settings/common.py
+19
-0
19 additions, 0 deletions
api/config/settings/common.py
api/requirements/base.txt
+1
-0
1 addition, 0 deletions
api/requirements/base.txt
deploy/env.prod.sample
+7
-0
7 additions, 0 deletions
deploy/env.prod.sample
with
29 additions
and
0 deletions
.env.dev
+
2
−
0
View file @
d60804c9
BACKEND_URL=http://localhost:6001
API_AUTHENTICATION_REQUIRED=True
CACHALOT_ENABLED=False
RAVEN_ENABLED=false
RAVEN_DSN=https://44332e9fdd3d42879c7d35bf8562c6a4:0062dc16a22b41679cd5765e5342f716@sentry.eliotberriot.com/5
This diff is collapsed.
Click to expand it.
api/config/settings/common.py
+
19
−
0
View file @
d60804c9
...
...
@@ -12,6 +12,7 @@ from __future__ import absolute_import, unicode_literals
import
os
import
environ
from
funkwhale_api
import
__version__
ROOT_DIR
=
environ
.
Path
(
__file__
)
-
3
# (/a/b/myfile.py - 3 = /)
APPS_DIR
=
ROOT_DIR
.
path
(
'
funkwhale_api
'
)
...
...
@@ -56,6 +57,23 @@ THIRD_PARTY_APPS = (
'
django_filters
'
,
)
# Sentry
RAVEN_ENABLED
=
env
.
bool
(
"
RAVEN_ENABLED
"
,
default
=
False
)
RAVEN_DSN
=
env
(
"
RAVEN_DSN
"
,
default
=
''
)
if
RAVEN_ENABLED
:
RAVEN_CONFIG
=
{
'
dsn
'
:
RAVEN_DSN
,
# If you are using git, you can also automatically configure the
# release based on the git info.
'
release
'
:
__version__
,
}
THIRD_PARTY_APPS
+=
(
'
raven.contrib.django.raven_compat
'
,
)
# Apps specific for this project go here.
LOCAL_APPS
=
(
'
funkwhale_api.users
'
,
# custom users app
...
...
@@ -72,6 +90,7 @@ LOCAL_APPS = (
)
# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
INSTALLED_APPS
=
DJANGO_APPS
+
THIRD_PARTY_APPS
+
LOCAL_APPS
# MIDDLEWARE CONFIGURATION
...
...
This diff is collapsed.
Click to expand it.
api/requirements/base.txt
+
1
−
0
View file @
d60804c9
...
...
@@ -56,3 +56,4 @@ git+https://github.com/EliotBerriot/django-cachalot.git@django-2
django-dynamic-preferences>=1.5,<1.6
pyacoustid>=1.1.5,<1.2
raven>=6.5,<7
This diff is collapsed.
Click to expand it.
deploy/env.prod.sample
+
7
−
0
View file @
d60804c9
...
...
@@ -78,3 +78,10 @@ API_AUTHENTICATION_REQUIRED=True
# public: anybody can register an account
# disabled: nobody can register an account
REGISTRATION_MODE=disabled
# Sentry/Raven error reporting (server side)
# Enable Raven if you want to help improve funkwhale by
# automatically sending error reports our Sentry instance.
# This will help us detect and correct bugs
RAVEN_ENABLED=false
RAVEN_DSN=https://44332e9fdd3d42879c7d35bf8562c6a4:0062dc16a22b41679cd5765e5342f716@sentry.eliotberriot.com/5
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment