Created
June 9, 2013 22:44
-
-
Save janosgyerik/5745578 to your computer and use it in GitHub Desktop.
Site upgrade script for a Django site using mod_passenger with Apache.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# | |
# Put this script in /path/to/project/local/upgrade.sh | |
# and customize if necessary | |
cd $(dirname "$0")/.. | |
projectname=$(basename $(pwd)) | |
. ~/virtualenv/$projectname/bin/activate | |
unset GIT_DIR | |
git pull | |
./manage.py collectstatic --noinput | |
touch ../tmp/restart.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment