mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-20 14:34:06 +01:00
Update cachetable name
This commit is contained in:
parent
d647906ff0
commit
168b648765
@ -182,7 +182,7 @@ DATABASES = {
|
|||||||
|
|
||||||
# Cache
|
# Cache
|
||||||
|
|
||||||
CACHES_LOCATION = f"{config('DB_NAME', default='db_test')}_cache"
|
CACHES_LOCATION = "accesstokencache"
|
||||||
|
|
||||||
CACHES = {
|
CACHES = {
|
||||||
"default": {
|
"default": {
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
if os.environ.get("DJANGO_ENV") == "PRODUCTION":
|
if os.environ.get("DJANGO_ENV") == "PRODUCTION":
|
||||||
from .production_settings import *
|
from .production_settings import *
|
||||||
else:
|
else:
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
"builder": "NIXPACKS"
|
"builder": "NIXPACKS"
|
||||||
},
|
},
|
||||||
"deploy": {
|
"deploy": {
|
||||||
"startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn --timeout 500 main.wsgi",
|
"startCommand": "python manage.py migrate && python manage.py createcachetable accesstokencache && gunicorn --timeout 500 main.wsgi",
|
||||||
"restartPolicyType": "NEVER",
|
"restartPolicyType": "NEVER",
|
||||||
"restartPolicyMaxRetries": 10
|
"restartPolicyMaxRetries": 10
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user