armada/entrypoint.sh
gardlt 7b26e59422 feat(cli): using-click-framework
- using click framework
- added api client
- allow interactions between code and service endpoints
- documention on the command line
- updated gitignore

Change-Id: Ibe359025f5b35606d876c29fa88e04048f276cc8
2017-11-02 20:59:57 +00:00

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