bb26131ce2
- enhanced logging - created base structure - updated docs - PasteDeploy auth - Oslo Policy Closes #107 Change-Id: I805863c57f17fcfb26dac5d03efb165e4be49a4e
17 lines
325 B
Bash
Executable File
17 lines
325 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CMD="armada"
|
|
PORT="8000"
|
|
|
|
set -e
|
|
|
|
if [ "$1" = 'server' ]; then
|
|
exec uwsgi --http 0.0.0.0:${PORT} --paste config:$(pwd)/etc/armada/api-paste.ini --enable-threads -L --pyargv " --config-file $(pwd)/etc/armada/armada.conf"
|
|
fi
|
|
|
|
if [ "$1" = 'tiller' ] || [ "$1" = 'apply' ]; then
|
|
exec $CMD "$@"
|
|
fi
|
|
|
|
exec "$@"
|