Blame view

pyrosrun.sh 422 Bytes
42983157   haribo   #3443 pyrosrun sc...
1
2
3
4
5
#!/bin/bash

NEEDED_ARGUMENT="One argument is needed. Possible arguments : [runserver|test]"
INVALID_ARGUMENT="Invalid argument. Possible arguments : [runserver|test]"

419720e2   carens_p   pyrosrun.sh
6
source private/venv_py3_pyros/bin/activate
42983157   haribo   #3443 pyrosrun sc...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

if [ $# -ne 1 ]; then
   echo $NEEDED_ARGUMENT
   exit
fi

cd src/

case "$1" in
     "server")
	python manage.py runserver
	;;
     "test")
	python manage.py test
	;;
     *)
	echo $INVALID_ARGUMENT
	;;
esac