diff --git a/dev.sh b/dev.sh index 2a9ad4f212..5243176c94 100755 --- a/dev.sh +++ b/dev.sh @@ -15,7 +15,7 @@ _start_gunicorn() { if [[ "$STATSD_HOST" ]]; then suffix="--statsd-host ${STATSD_HOST}:${STATSD_PORT}" fi - if [[ "$RUN_ENV" == "enterprise" ]] || [[ "$RUN_ENV" == "DEV" ]]; then + if [[ "$RUN_ENV" == "ENTERPRISE" ]] || [[ "$RUN_ENV" == "enterprise" ]] || [[ "$RUN_ENV" == "DEV" ]]; then python manage.py migrate python manage.py migrate --database "timeseries" fi diff --git a/enterprise.sh b/enterprise.sh index 66668f7452..78f2ce35e0 100755 --- a/enterprise.sh +++ b/enterprise.sh @@ -29,6 +29,7 @@ if [[ "$1" = "api" || -z "$1" ]]; then # Migrate python manage.py migrate + python manage.py migrate --database "timeseries" # Start api ${SUB}$prefix gunicorn codecov.wsgi:application --workers=$GUNICORN_WORKERS --bind ${CODECOV_API_BIND:-0.0.0.0}:${CODECOV_API_PORT:-8000} --access-logfile '-' ${statsd}--timeout "${GUNICORN_TIMEOUT:-600}"${POST} elif [[ "$1" = "rti" ]]; @@ -38,6 +39,7 @@ then elif [[ "$1" = "migrate" ]]; then python manage.py migrate + python manage.py migrate --database "timeseries" else exec "$@" fi