Skip to content

Commit 2e51046

Browse files
committed
Create the json cache files when starting the api
1 parent 2aae828 commit 2e51046

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contrib/start.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
python manage.py migrate --noinput # Apply database migrations
33
python manage.py collectstatic --clear --noinput # Collect static files
44

5+
# recreate the cached static json files
6+
python manage.py cache_static_json_data --interval 5m
7+
python manage.py cache_static_json_data --interval 1h
8+
python manage.py cache_static_json_data --interval 24h
9+
510
# Prepare log files and start outputting logs to stdout
611
touch /src/logs/celery.log
712
touch /src/logs/gunicorn.log

0 commit comments

Comments
 (0)