2016-03-15 00:44:10 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd $(dirname $0)
|
|
|
|
case "$1" in
|
|
|
|
web)
|
|
|
|
echo "Starting Web Server"
|
|
|
|
exec ./web.sh
|
|
|
|
;;
|
|
|
|
worker)
|
|
|
|
echo "Starting Celery Worker"
|
|
|
|
exec ./worker.sh
|
|
|
|
;;
|
|
|
|
test)
|
|
|
|
echo "Running Tests"
|
|
|
|
cd ..
|
2016-04-25 19:15:41 +03:00
|
|
|
flake8 . --exclude=./recommendation/views/data/dummy.py
|
|
|
|
RECOMMENDATION_TESTING=true nosetests
|
2016-03-15 00:44:10 +03:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Usage: $0 {web|worker|test}"
|
|
|
|
exit 1
|
|
|
|
esac
|