2010-07-22 05:09:09 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# this should be run as the TP_USER user
|
|
|
|
|
|
|
|
cd ~
|
|
|
|
hg serve -p 8000 --prefix /repo/ > $HOME/hgserve.log 2>&1 &
|
|
|
|
|
|
|
|
cd ~/web
|
|
|
|
|
|
|
|
if [ ! -f "TP_DB/teamplayer.db" ] ; then
|
|
|
|
python manage.py syncdb
|
|
|
|
fi
|
|
|
|
|
|
|
|
# spin!
|
2010-08-05 07:45:55 +02:00
|
|
|
python manage.py spin --verbosity=2 $@ > "$HOME/teamplayer.log" 2>&1 &
|
2010-07-22 05:09:09 +02:00
|
|
|
echo $! > "$HOME/tps.pid"
|