adapted cleanup script to new file locations and parameters.

This commit is contained in:
2018-04-27 10:10:02 +02:00
parent 4bd017ec4f
commit 8ddbe03ff8

View File

@@ -4,18 +4,17 @@ echo "aktualisiere Übersetzungen..."
cd src cd src
unset DJANGO_SETTINGS_MODULE unset DJANGO_SETTINGS_MODULE
for dir in * for dir in *
do do
if [ -d ${dir}/locale ] if [ -d ${dir}/locale ]
echo "Übersetze $dir" then
then echo -n "$dir: "
echo -n "$dir: " cd ${dir}
cd ${dir} django-admin.py makemessages -l de
django-admin.py makemessages -l de cd ..
cd .. fi
fi done
done
sleep 5s sleep 5s
export DJANGO_SETTINGS_MODULE="kasu.settings.production" export DJANGO_SETTINGS_MODULE="kasu.settings"
./manage.py compilemessages ./manage.py compilemessages
echo "lösche den Python Compiler Cache..." echo "lösche den Python Compiler Cache..."
@@ -23,5 +22,5 @@ find . -name "*.pyc" -exec rm -rf {} \;
echo "Aktualisiere Statics" echo "Aktualisiere Statics"
./manage.py collectstatic --noinput -c ./manage.py collectstatic --noinput -c
echo "Erstelle Vorschaubilder" echo "Erstelle Vorschaubilder"
./manage.py generateimages ./manage.py thumbnail_cleanup
touch kasu/wsgi.py touch kasu/wsgi.py