From 1538b4b9abed1329756eedfb08fb9540d7800145 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 8 May 2023 10:12:28 -0400 Subject: [PATCH] test: Be able to run migrations locally on bare metal. With this change, we can run the migrations locally using minimal.yml --- lms/envs/minimal.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lms/envs/minimal.yml b/lms/envs/minimal.yml index 54c3bcea26..f66dffc700 100644 --- a/lms/envs/minimal.yml +++ b/lms/envs/minimal.yml @@ -20,6 +20,12 @@ MKTG_URL_LINK_MAP: {} MKTG_URL_OVERRIDES: {} REST_FRAMEWORK: {} +# We need MEDIA_ROOT because otherwise ./lms/djangoapps/certificates/migrations/0003_data__default_modes.py will fail. +# +# Using a local tmp location is not a good default for a production system. For production we should use +# off-machine storage to more easily scale the system. +MEDIA_ROOT: "/tmp/edx-platform/media/" + # For just the CMS LMS_ROOT_URL: "http://localhost" LMS_INTERNAL_ROOT_URL: "http://localhost"