kopia lustrzana https://github.com/wagtail/bakerydemo
Upgrade whitenoise to 5.0.x for Django 3.0 compatibility
rodzic
03525d76db
commit
de6876d452
|
@ -45,7 +45,7 @@ EXPOSE 8000
|
||||||
ENV DJANGO_SETTINGS_MODULE=bakerydemo.settings.production DJANGO_DEBUG=off
|
ENV DJANGO_SETTINGS_MODULE=bakerydemo.settings.production DJANGO_DEBUG=off
|
||||||
|
|
||||||
# Tell uWSGI where to find your wsgi file:
|
# Tell uWSGI where to find your wsgi file:
|
||||||
ENV UWSGI_WSGI_FILE=bakerydemo/wsgi_production.py
|
ENV UWSGI_WSGI_FILE=bakerydemo/wsgi.py
|
||||||
|
|
||||||
# Base uWSGI configuration (you shouldn't need to change these):
|
# Base uWSGI configuration (you shouldn't need to change these):
|
||||||
ENV UWSGI_VIRTUALENV=/venv UWSGI_HTTP=:8000 UWSGI_MASTER=1 UWSGI_HTTP_AUTO_CHUNKED=1 UWSGI_HTTP_KEEPALIVE=1 UWSGI_UID=1000 UWSGI_GID=2000 UWSGI_LAZY_APPS=1 UWSGI_WSGI_ENV_BEHAVIOR=holy
|
ENV UWSGI_VIRTUALENV=/venv UWSGI_HTTP=:8000 UWSGI_MASTER=1 UWSGI_HTTP_AUTO_CHUNKED=1 UWSGI_HTTP_KEEPALIVE=1 UWSGI_UID=1000 UWSGI_GID=2000 UWSGI_LAZY_APPS=1 UWSGI_WSGI_ENV_BEHAVIOR=holy
|
||||||
|
|
2
Procfile
2
Procfile
|
@ -1,2 +1,2 @@
|
||||||
release: yes "yes" | python manage.py migrate
|
release: yes "yes" | python manage.py migrate
|
||||||
web: uwsgi --http-socket=:$PORT --master --workers=2 --threads=8 --die-on-term --wsgi-file=bakerydemo/wsgi_production.py --static-map /media/=/app/bakerydemo/media/ --offload-threads 1
|
web: uwsgi --http-socket=:$PORT --master --workers=2 --threads=8 --die-on-term --wsgi-file=bakerydemo/wsgi.py --static-map /media/=/app/bakerydemo/media/ --offload-threads 1
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
from django.core.wsgi import get_wsgi_application
|
|
||||||
from whitenoise.django import DjangoWhiteNoise
|
|
||||||
|
|
||||||
application = get_wsgi_application()
|
|
||||||
application = DjangoWhiteNoise(application)
|
|
|
@ -6,7 +6,7 @@ elasticsearch==2.4.1
|
||||||
dj-database-url==0.4.1
|
dj-database-url==0.4.1
|
||||||
uwsgi>=2.0.17,<2.1
|
uwsgi>=2.0.17,<2.1
|
||||||
psycopg2>=2.7,<3.0
|
psycopg2>=2.7,<3.0
|
||||||
whitenoise==3.2.2
|
whitenoise>=5.0,<5.1
|
||||||
boto3==1.9.189
|
boto3==1.9.189
|
||||||
google-cloud-storage==1.20.0
|
google-cloud-storage==1.20.0
|
||||||
django-storages==1.7.2
|
django-storages==1.7.2
|
||||||
|
|
Ładowanie…
Reference in New Issue