armada/entrypoint.sh
drewwalters96 9cd71c8b55 [Bug] Update API Entrypoint
- server.py is now located in the API folder
2017-07-24 15:55:32 -05:00

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 "$@"