Update cachetable name

This commit is contained in:
sosokker 2023-11-22 21:09:16 +07:00
parent d647906ff0
commit 168b648765
3 changed files with 13 additions and 11 deletions

View File

@ -182,7 +182,7 @@ DATABASES = {
# Cache
CACHES_LOCATION = f"{config('DB_NAME', default='db_test')}_cache"
CACHES_LOCATION = "accesstokencache"
CACHES = {
"default": {

View File

@ -1,3 +1,5 @@
import os
if os.environ.get("DJANGO_ENV") == "PRODUCTION":
from .production_settings import *
else:

View File

@ -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
}
}