Product-Manager/product-manager-backend/scripts/backend_entrypoint.sh

13 lines
270 B
Bash
Raw Normal View History

2022-04-25 12:07:08 +00:00
#!/bin/bash
# Collect static files
echo "Collect static files"
python manage.py collectstatic --noinput
# Apply database migrations
echo "Apply database migrations"
python manage.py migrate
# Start server
echo "Starting server"
python manage.py runserver 0.0.0.0:8000