From 961b355ca023f4f52a479b744b6b88b512ef421d Mon Sep 17 00:00:00 2001 From: XLAR-8 Date: Sun, 14 May 2023 02:30:30 +0530 Subject: [PATCH] Feat:Auto-sync dependencies between code and virtual env for lms --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 02cd46b084..3daf06f827 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -433,7 +433,7 @@ services: - "44567:4567" lms: - command: bash -c 'source /edx/app/edxapp/edxapp_env && while true; do python /edx/app/edxapp/edx-platform/manage.py lms runserver 0.0.0.0:18000 --settings devstack_docker; sleep 2; done' + command: bash -c 'source /edx/app/edxapp/edxapp_env && while true; do if [ ! -f /edx/app/edxapp/fingerprint ] || ! diff -q /edx/app/edxapp/fingerprint <(find /edx/app/edxapp/venvs/edxapp -printf '%P %t %s %i %m %U %G\n' | sort | sha256sum) >/dev/null 2>&1; then make requirements find /edx/app/edxapp/venvs/edxapp -printf '%P %t %s %i %m %U %G\n' | sort | sha256sum > /edx/app/edxapp/fingerprint fi python /edx/app/edxapp/edx-platform/manage.py lms runserver 0.0.0.0:18000 --settings devstack_docker sleep 2 done' container_name: "edx.${COMPOSE_PROJECT_NAME:-devstack}.lms" hostname: lms.devstack.edx depends_on: