7b26e59422
- using click framework - added api client - allow interactions between code and service endpoints - documention on the command line - updated gitignore Change-Id: Ibe359025f5b35606d876c29fa88e04048f276cc8
13 lines
264 B
Bash
Executable File
13 lines
264 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CMD="armada"
|
|
PORT="8000"
|
|
|
|
set -e
|
|
|
|
if [ "$1" = 'server' ]; then
|
|
exec uwsgi --http :${PORT} --http-timeout 3600 --paste config:/etc/armada/api-paste.ini --enable-threads -L --pyargv "--config-file /etc/armada/armada.conf"
|
|
else
|
|
exec $CMD "$@"
|
|
fi
|