diff --git a/api/settings.py b/api/settings.py index 3bd235f..9f021c3 100644 --- a/api/settings.py +++ b/api/settings.py @@ -105,18 +105,10 @@ PROD_DATABASES = { }, } -PROD_CACHES = { - "default": { - "BACKEND": "django.core.cache.backends.db.DatabaseCache", - "LOCATION": "webpreview_api_cache", - } -} - if DEBUG: DATABASES = DEV_DATABASES else: DATABASES = PROD_DATABASES - CACHES = PROD_CACHES # Password validation # https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators diff --git a/entrypoint.sh b/entrypoint.sh index 0232825..a87fb1d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,4 @@ #!/bin/sh -python manage.py createcachetable python manage.py migrate --noinput exec gunicorn --bind 0.0.0.0:8000 api.asgi:application -k uvicorn.workers.UvicornWorker -w 5 \ No newline at end of file