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