diff --git a/src/website/entrypoint.sh b/src/website/entrypoint.sh index f865e28d4f..543a17c530 100644 --- a/src/website/entrypoint.sh +++ b/src/website/entrypoint.sh @@ -9,5 +9,9 @@ python manage.py migrate --noinput echo "Collecting static files..." python manage.py collectstatic --noinput +# Move collected static files to the Nginx static directory +echo "Moving static files to Nginx directory..." +cp -r /app/staticfiles/* /usr/share/nginx/html/static/ + echo "Starting Supervisor (which runs Nginx and Gunicorn)..." exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf