7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-05-30 04:40:49 +00:00

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.
This commit is contained in:
Régis Behmo 2018-12-30 13:08:24 +01:00
parent e864e94bb5
commit ef7c769808

View File

@ -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',