Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
678f240c
Verified
Commit
678f240c
authored
5 months ago
by
Erwan Rouchet
Browse files
Options
Downloads
Patches
Plain Diff
Use the WSGI_APPLICATION setting when running Gunicorn
parent
67554cd3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2463
Use the WSGI_APPLICATION setting when running Gunicorn
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex/documents/management/commands/gunicorn.py
+5
-2
5 additions, 2 deletions
arkindex/documents/management/commands/gunicorn.py
with
5 additions
and
2 deletions
arkindex/documents/management/commands/gunicorn.py
+
5
−
2
View file @
678f240c
...
...
@@ -4,7 +4,7 @@ import sys
from
django.conf
import
settings
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.core.
wsgi
import
get_wsgi_application
from
django.core.
servers.basehttp
import
get_
internal_
wsgi_application
class
Command
(
BaseCommand
):
...
...
@@ -67,6 +67,9 @@ class Command(BaseCommand):
}
def
load
(
self
):
return
get_wsgi_application
()
# Django's get_wsgi_application returns only its default WSGI app,
# but we want to use whatever app is set with the WSGI_APPLICATION setting,
# which is returned by get_internal_wsgi_application.
return
get_internal_wsgi_application
()
ArkindexServer
().
run
()
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