gfw-api/forest-change-analysis-elastic

View on GitHub
entrypoint.sh

Summary

Maintainability
Test Coverage
#!/bin/bash
set -e

case "$1" in
    develop)
        echo "Running Development Server"
        exec python main.py
        ;;
    test)
        echo "Test"
        exec python -m unittest -v gladanalysis.tests
        ;;
    start)
        echo "Running Start"
        exec gunicorn -c gunicorn.py gladanalysis.wsgi:application
        ;;
    *)
        exec "$@"
esac