some tests, and docker fix
[cas.git] / manage
diff --git a/manage b/manage
index 62e0c46..c27ba11 100755 (executable)
--- a/manage
+++ b/manage
@@ -6,7 +6,7 @@ then
     [ -z "$PORT" ] && PORT=8000
     EXPOSED=127.0.0.1:"$PORT"
     echo "expose as: $EXPOSED"
     [ -z "$PORT" ] && PORT=8000
     EXPOSED=127.0.0.1:"$PORT"
     echo "expose as: $EXPOSED"
-    exec docker-compose run -p "$EXPOSED":"$PORT" dev python src/manage.py runserver 0.0.0.0:"$PORT"
+    exec docker-compose run -p "$EXPOSED":"$PORT" dev python $PYARGS manage.py runserver 0.0.0.0:"$PORT"
 else
 else
-    exec docker-compose run dev python src/manage.py "$@"
+    exec docker-compose run dev python $PYARGS manage.py "$@"
 fi
 fi