Files
django-example-app/docker-entrypoint.sh
Basyrov Rustam f81388e462
All checks were successful
CI-pipeline / linters (pull_request) Successful in 38s
make migrations in docker-entrypoint
2025-06-06 13:43:56 +03:00

17 lines
324 B
Bash
Executable File

#!/bin/sh
# Collect static files
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
# Start server
echo "Starting server"
python manage.py runserver 0.0.0.0:8000