Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions medcat-trainer/docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ services:
- ./envs/env
environment:
- MCT_VERSION=latest
- MCT_DEV_LIVERELOAD=1
# OIDC Settings
- USE_OIDC=0
- KEYCLOAK_URL=http://keycloak.cogstack.localhost
Expand Down
9 changes: 8 additions & 1 deletion medcat-trainer/webapp/scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,11 @@ fi
# RESET any Env vars to original stat
export RESUBMIT_ALL_ON_STARTUP=$TMP_RESUBMIT_ALL_VAR

exec uv run uwsgi --http-timeout 360s --http :8000 --master --chdir /home/api/ --module core.wsgi
# Dev live-reload: runserver restarts and re-imports on file change; uWSGI py-autoreload only restarts workers (old code in memory).
if [ ${MCT_DEV_LIVERELOAD:-0} -eq 1 ]; then
echo "Starting with Django runserver (live reload)"
cd /home/api
exec uv run python manage.py runserver 0.0.0.0:8000
else
exec uv run uwsgi --http-timeout 360s --http :8000 --master --chdir /home/api/ --module core.wsgi
fi