9cd71c8b55
- server.py is now located in the API folder
17 lines
217 B
Bash
Executable File
17 lines
217 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CMD="armada"
|
|
PORT="8000"
|
|
|
|
set -e
|
|
|
|
if [ "$1" = 'server' ]; then
|
|
gunicorn server:api -b :$PORT --chdir armada/api
|
|
fi
|
|
|
|
if [ "$1" = 'tiller' ] || [ "$1" = 'apply' ]; then
|
|
exec $CMD "$@"
|
|
fi
|
|
|
|
exec "$@"
|