From 9baeb7c554d8c3f2419f91aeac536dd3acd7949d Mon Sep 17 00:00:00 2001 From: yukl-c <72858964+yukl-c@users.noreply.github.com> Date: Fri, 17 Oct 2025 16:15:12 +0800 Subject: [PATCH] Add entrypoint script for migrations and static files This script handles database migrations and static file collection. --- entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000000..863742d778 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# Make migrations and migrate the database. +echo "Making migrations and migrating the database. " +python manage.py makemigrations --noinput +python manage.py migrate --noinput +python manage.py collectstatic --noinput +exec "$@"