notebooks/components/crud-web-apps/jupyter/backend/Makefile

30 lines
649 B
Makefile

SHELL=bash
install-deps:
pushd ../../common/backend && \
pip install -e . && \
popd
pip install -r requirements.txt
run:
APP_PREFIX=/jupyter \
gunicorn -w 3 --bind 0.0.0.0:5000 --access-logfile - entrypoint:app
run-rok:
UI_FLAVOR=rok \
APP_PREFIX=/jupyter \
gunicorn -w 3 --bind 0.0.0.0:5000 --access-logfile - entrypoint:app
run-dev:
UI_FLAVOR=default \
BACKEND_MODE=dev \
APP_PREFIX=/ \
gunicorn -w 3 --bind 0.0.0.0:5000 --access-logfile - entrypoint:app
run-dev-rok:
UI_FLAVOR=rok \
BACKEND_MODE=dev \
ROK_URL=http://10.10.10.10:8080/rok \
APP_PREFIX=/ \
gunicorn -w 3 --bind 0.0.0.0:5000 --access-logfile - entrypoint:app