Skip to content

Commit

Permalink
🐛(config) reintroduce the STATIC_ROOT_BASE setting
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sampaccoud committed Dec 11, 2018
1 parent 7afc8a6 commit dcc9dac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/cms/docker_run_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion config/lms/docker_run_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dcc9dac

Please sign in to comment.