dev/modules/sysconfig/templates/start-testserver.sh.erb
author ymh <ymh.work@gmail.com>
Fri, 14 Mar 2014 13:16:10 +0100
changeset 611 fa66f4bb1563
parent 609 736fdedb7774
child 628 ecf0e467eeb8
permissions -rwxr-xr-x
add some more custom config and put every thing in comment in the custom.yaml template

#!/bin/bash


ROOTPATH="/srv/comt"
TMPFILE=`mktemp`

pushd "$ROOTPATH" > /dev/null

nohup bin/django testserver --noinput --addrport=0.0.0.0:<%= @testserver_port %> initial_data roles_generic test_suite > $TMPFILE 2>&1 &
echo "$!|$TMPFILE" > /tmp/testserver.pid

cat  /tmp/testserver.pid

popd > /dev/null