#!/bin/bash

source $ZOOX_WORKSPACE_ROOT/third_party/venvs/catalog_backend/bin/activate
pip install -r $ZOOX_WORKSPACE_ROOT/infra/data_catalog/catalog_backend/requirements.txt
export FLASK_APP=infra.data_catalog.catalog_backend.app
export DATA_CATALOG_ENV=local
gunicorn $FLASK_APP:application \
  --workers=1 \
  --threads=12 \
  --bind 0.0.0.0:2007 \
  --log-level DEBUG --reload
