Základní skript pro práci s djangem

Z Varhoo
(Rozdíly mezi verzemi)
Přejít na: navigace, hledání
(Založena nová stránka: script.sh #!/bin/bash if [ "$1" = "upgrade" ] then pip install --upgrade django-grappelli pip install --upgrade django pip install --upgrade django-filebrowser …)

Verze z 29. 8. 2011, 14:53

script.sh

#!/bin/bash

if [ "$1" = "upgrade" ]
then
	pip install --upgrade django-grappelli
	pip install --upgrade django
	pip install --upgrade django-filebrowser
exit
fi

if [ "$1" = "--force" ]
then
find ./ -name "*.pyc" | xargs rm
fi

WEB_USER=luhacovske_cz
WEB_GROUP=webusers

echo "Update repository.."
su $USER -c "svn update"

echo "Set up own rigths.."
chown $WEB_USER:$WEB_GROUP -R ./

service apache2 reload
Osobní nástroje