diff --git a/contrib/scripts/install/dialog.sh b/contrib/scripts/install/dialog.sh index f3fa23b38d..e7d929639c 100644 --- a/contrib/scripts/install/dialog.sh +++ b/contrib/scripts/install/dialog.sh @@ -1445,7 +1445,7 @@ sudo -u mayan \ dialog --infobox "Preparing static files" 3 70 sudo -u mayan \ MAYAN_MEDIA_ROOT=$MAYAN_MEDIA_ROOT \ - $MAYAN_BIN collectstatic --noinput > /dev/null + $MAYAN_BIN preparestatic --noinput > /dev/null # Create supervisor file for gunicorn (frontend), 3 background workers, and the scheduler for periodic tasks cat > /etc/supervisor/conf.d/mayan.conf < Collecting the static files \n" -mayan-edms.py collectstatic --noinput +mayan-edms.py preparestatic --noinput echo -e "\n -> Making the installation directory readable and writable by the webserver user \n" chown www-data:www-data ${INSTALLATION_DIRECTORY} -R diff --git a/docs/releases/3.2.rst b/docs/releases/3.2.rst index a2ab102c75..2d9c6be860 100644 --- a/docs/releases/3.2.rst +++ b/docs/releases/3.2.rst @@ -829,6 +829,10 @@ Backward incompatible changes ImportError: No module named ocr.backends.pyocr +- To collect and compress the static media files, use the new ``preparestatic`` + command instead of the traditional ``collectstatic``. Both work the same + way, but ``preparestatic`` has a default backlist to avoid collecting + test files. Bugs fixed or issues closed --------------------------- diff --git a/docs/topics/faq.rst b/docs/topics/faq.rst index 45b9b0c362..aa7e636884 100644 --- a/docs/topics/faq.rst +++ b/docs/topics/faq.rst @@ -148,7 +148,7 @@ Django's development server doesn't serve static files unless the DEBUG option is set to True, this mode of operation should only be used for development or testing. For production deployments the management command:: - $ mayan-edms.py collectstatic + $ mayan-edms.py preparestatic should be used and the resulting static folder served from a webserver. For more information check the