Skip to content

Development: use gunicorn for web and proxito #9977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions readthedocs/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
# -*- coding: utf-8 -*-

"""WSGI application helper."""

from __future__ import absolute_import
import os

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'readthedocs.settings.dev')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "readthedocs.settings.docker_compose")

# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
from django.core.wsgi import get_wsgi_application # noqa
application = get_wsgi_application()

# Apply WSGI middleware here.
# from helloworld.wsgi import HelloWorldApplication
# application = HelloWorldApplication(application)
application = get_wsgi_application()
1 change: 0 additions & 1 deletion requirements/deploy.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-r pip.txt

psycopg2
gunicorn
django-redis-cache

# For resizing images
Expand Down
2 changes: 1 addition & 1 deletion requirements/deploy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ gitdb==4.0.10
gitpython==3.1.30
# via -r requirements/pip.txt
gunicorn==20.1.0
# via -r requirements/deploy.in
# via -r requirements/pip.txt
idna==3.4
# via
# -r requirements/pip.txt
Expand Down
2 changes: 2 additions & 0 deletions requirements/docker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ gitdb==4.0.10
# gitpython
gitpython==3.1.30
# via -r requirements/pip.txt
gunicorn==20.1.0
# via -r requirements/pip.txt
idna==3.4
# via
# -r requirements/pip.txt
Expand Down
2 changes: 2 additions & 0 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ gitdb==4.0.10
# gitpython
gitpython==3.1.30
# via -r requirements/pip.txt
gunicorn==20.1.0
# via -r requirements/pip.txt
idna==3.4
# via
# -r requirements/pip.txt
Expand Down
2 changes: 2 additions & 0 deletions requirements/lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ gitdb==4.0.10
# gitpython
gitpython==3.1.30
# via -r requirements/pip.txt
gunicorn==20.1.0
# via -r requirements/pip.txt
idna==3.4
# via
# -r requirements/pip.txt
Expand Down
2 changes: 2 additions & 0 deletions requirements/pip.in
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,5 @@ django-structlog==2.2.0

structlog
dparse

gunicorn
2 changes: 2 additions & 0 deletions requirements/pip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ gitdb==4.0.10
# via gitpython
gitpython==3.1.30
# via -r requirements/pip.in
gunicorn==20.1.0
# via -r requirements/pip.in
idna==3.4
# via requests
imagesize==1.4.1
Expand Down
2 changes: 2 additions & 0 deletions requirements/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ gitdb==4.0.10
# gitpython
gitpython==3.1.30
# via -r requirements/pip.txt
gunicorn==20.1.0
# via -r requirements/pip.txt
idna==3.4
# via
# -r requirements/pip.txt
Expand Down