27 lines
622 B
Bash
Executable File
27 lines
622 B
Bash
Executable File
#!/bin/bash
|
|
. /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh
|
|
workon kasu
|
|
echo "aktualisiere Übersetzungen..."
|
|
exit
|
|
unset DJANGO_SETTINGS_MODULE
|
|
for dir in *
|
|
do
|
|
if [ -d $dir/locale ]
|
|
then
|
|
echo -n "$dir: "
|
|
cd $dir
|
|
django-admin.py makemessages -l de
|
|
cd ..
|
|
fi
|
|
done
|
|
sleep 5s
|
|
export DJANGO_SETTINGS_MODULE="kasu.settings.production"
|
|
./manage.py compilemessages
|
|
|
|
echo "lösche den Python Compiler Cache..."
|
|
find . -name "*.pyc" -exec rm -rf {} \;
|
|
|
|
./manage.py collectstatic --noinput -c
|
|
./manage.py generateimages
|
|
touch kasu/wsgi.py
|