use tornado for api requests

This commit is contained in:
j 2014-05-19 22:14:24 +02:00
commit ed7053c0cb
6 changed files with 265 additions and 98 deletions

7
ctl
View file

@ -94,6 +94,13 @@ if [ "$1" == "update" ]; then
python2 oml update_static > /dev/null
exit
fi
if [ "$1" == "python" ]; then
cd $BASE/$NAME
echo `pwd`
shift
python2 $@
exit $?
fi
cd $BASE/$NAME
python2 oml $@