From dcc9dacfc72abfbae5c7aa042a6db8004b91437b Mon Sep 17 00:00:00 2001 From: Samuel Paccoud - FUN MOOC Date: Tue, 11 Dec 2018 16:58:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(config)=20reintroduce=20the=20STAT?= =?UTF-8?q?IC=5FROOT=5FBASE=20setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We thought this setting was useless but it is used in 1 place in edx-platform: edx-platform/common/djangoapps/pipeline_mako/helpers/studiofrontend.py sigh. --- config/cms/docker_run_production.py | 1 + config/lms/docker_run_production.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/cms/docker_run_production.py b/config/cms/docker_run_production.py index 77a556fb..24f9676c 100644 --- a/config/cms/docker_run_production.py +++ b/config/cms/docker_run_production.py @@ -107,6 +107,7 @@ GITHUB_REPO_ROOT = config("GITHUB_REPO_ROOT", default=GITHUB_REPO_ROOT) STATIC_URL = "/static/studio/" +STATIC_ROOT_BASE = path("/edx/app/edxapp/staticfiles") STATIC_ROOT = path("/edx/app/edxapp/staticfiles/studio") WEBPACK_LOADER["DEFAULT"]["STATS_FILE"] = STATIC_ROOT / "webpack-stats.json" diff --git a/config/lms/docker_run_production.py b/config/lms/docker_run_production.py index f8106dd2..e5c88e87 100644 --- a/config/lms/docker_run_production.py +++ b/config/lms/docker_run_production.py @@ -112,7 +112,8 @@ ########################## NON-SECURE ENV CONFIG ############################## # Things like server locations, ports, etc. -STATIC_ROOT = path("/edx/app/edxapp/staticfiles") +STATIC_ROOT_BASE = path("/edx/app/edxapp/staticfiles") +STATIC_ROOT = STATIC_ROOT_BASE STATIC_URL = "/static/" WEBPACK_LOADER["DEFAULT"]["STATS_FILE"] = STATIC_ROOT / "webpack-stats.json"