From ef7c7698084957553cb589dc3b11c7012a0b34aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Sun, 30 Dec 2018 13:08:24 +0100 Subject: [PATCH] Fix "missing webpack-stats.json" 500 error in CMS The STATIC_ROOT for the CMS is not the same as the LMS. To apply this fix, run: make update make assets make restart-openedx Close #111. --- build/openedx/bin/openedx-assets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/openedx/bin/openedx-assets b/build/openedx/bin/openedx-assets index 4751add..122e1d1 100755 --- a/build/openedx/bin/openedx-assets +++ b/build/openedx/bin/openedx-assets @@ -80,7 +80,7 @@ def run_npm(args): def run_webpack(args): os.environ['STATIC_ROOT_LMS'] = args.static_root - os.environ['STATIC_ROOT_CMS'] = args.static_root + os.environ['STATIC_ROOT_CMS'] = os.path.join(args.static_root, 'studio') os.environ['NODE_ENV'] = { 'prod': 'production', 'dev': 'development',