Added Fabric file and various small fixes to enable better deployments

This commit is contained in:
2010-07-07 13:07:07 +01:00
parent ebce7f98cb
commit 6e122a17ab
3 changed files with 99 additions and 7 deletions

View File

@@ -1,4 +1,11 @@
#!/bin/sh
#!/bin/bash
. ./env/bin/activate
python ./manage.py runfcgi method=threaded host=127.0.0.1 port=9981
PIDFILE='auth.pid'
if [ -f $PIDFILE ]; then
kill `cat -- $PIDFILE`
rm -f -- $PIDFILE
fi
source ./env/bin/activate
./manage.py runfcgi daemonize=false pidfile=$PIDFILE host=127.0.0.1 port=9981 &