mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Added Fabric file and various small fixes to enable better deployments
This commit is contained in:
13
start.sh
13
start.sh
@@ -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 &
|
||||
|
||||
Reference in New Issue
Block a user