make migrations in docker-entrypoint
All checks were successful
CI-pipeline / linters (pull_request) Successful in 38s

This commit is contained in:
Basyrov Rustam
2025-06-06 13:43:56 +03:00
parent 1c9f69ee11
commit f81388e462
2 changed files with 3 additions and 1 deletions

View File

@@ -5,7 +5,6 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY ./manage.py .
RUN ./manage.py makemigrations
# RUN ./manage.py migrate
COPY docker-entrypoint.sh .

View File

@@ -4,7 +4,10 @@
echo "Collect static files"
python manage.py collectstatic --noinput
# Apply database migrations
echo "Make migrations"
RUN ./manage.py makemigrations
echo "Apply database migrations"
python manage.py migrate