#!/bin/bash

CMD="armada"
PORT="8000"

set -e

if [ "$1" = 'server' ]; then
    gunicorn server:api -b :$PORT
fi

if [ "$1" = 'tiller' ] || [ "$1" = 'apply' ]; then
    exec $CMD "$@"
fi

exec "$@"

#!/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 "$@"

Update API Entrypoint - server.py is now located in the API folder
[Bug] Update API Entrypoint
- server.py is now located in the API folder
