Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
a7d6f843
Commit
a7d6f843
authored
7 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Don't use the edx-platform revision as the studio assets base url
parent
98b391a2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cms/envs/aws.py
+2
-2
2 additions, 2 deletions
cms/envs/aws.py
cms/envs/common.py
+3
-2
3 additions, 2 deletions
cms/envs/common.py
cms/envs/yaml_config.py
+2
-2
2 additions, 2 deletions
cms/envs/yaml_config.py
with
7 additions
and
6 deletions
cms/envs/aws.py
+
2
−
2
View file @
a7d6f843
...
...
@@ -102,7 +102,7 @@ if STATIC_URL_BASE:
STATIC_URL
=
STATIC_URL_BASE
.
encode
(
'
ascii
'
)
if
not
STATIC_URL
.
endswith
(
"
/
"
):
STATIC_URL
+=
"
/
"
STATIC_URL
+=
EDX_PLATFORM_REVISION
+
"
/
"
STATIC_URL
+=
'
studio/
'
# DEFAULT_COURSE_ABOUT_IMAGE_URL specifies the default image to show for courses that don't provide one
DEFAULT_COURSE_ABOUT_IMAGE_URL
=
ENV_TOKENS
.
get
(
'
DEFAULT_COURSE_ABOUT_IMAGE_URL
'
,
DEFAULT_COURSE_ABOUT_IMAGE_URL
)
...
...
@@ -126,7 +126,7 @@ GITHUB_REPO_ROOT = ENV_TOKENS.get('GITHUB_REPO_ROOT', GITHUB_REPO_ROOT)
STATIC_ROOT_BASE
=
ENV_TOKENS
.
get
(
'
STATIC_ROOT_BASE
'
,
None
)
if
STATIC_ROOT_BASE
:
STATIC_ROOT
=
path
(
STATIC_ROOT_BASE
)
/
EDX_PLATFORM_REVISION
STATIC_ROOT
=
path
(
STATIC_ROOT_BASE
)
/
'
studio
'
WEBPACK_LOADER
[
'
DEFAULT
'
][
'
STATS_FILE
'
]
=
STATIC_ROOT
/
"
webpack-stats.json
"
EMAIL_BACKEND
=
ENV_TOKENS
.
get
(
'
EMAIL_BACKEND
'
,
EMAIL_BACKEND
)
...
...
This diff is collapsed.
Click to expand it.
cms/envs/common.py
+
3
−
2
View file @
a7d6f843
...
...
@@ -612,8 +612,8 @@ if not EDX_PLATFORM_REVISION:
EDX_PLATFORM_REVISION
=
'
unknown
'
# Static content
STATIC_URL
=
'
/static/
'
+
EDX_PLATFORM_REVISION
+
"
/
"
STATIC_ROOT
=
ENV_ROOT
/
"
staticfiles
"
/
EDX_PLATFORM_REVISION
STATIC_URL
=
'
/static/
studio/
'
STATIC_ROOT
=
ENV_ROOT
/
"
staticfiles
"
/
'
studio
'
STATICFILES_DIRS
=
[
COMMON_ROOT
/
"
static
"
,
...
...
@@ -829,6 +829,7 @@ PIPELINE_YUI_BINARY = 'yui-compressor'
################################# DJANGO-REQUIRE ###############################
# The baseUrl to pass to the r.js optimizer, relative to STATIC_ROOT.
REQUIRE_BASE_URL
=
"
./
"
...
...
This diff is collapsed.
Click to expand it.
cms/envs/yaml_config.py
+
2
−
2
View file @
a7d6f843
...
...
@@ -169,10 +169,10 @@ if STATIC_URL_BASE:
STATIC_URL
=
STATIC_URL_BASE
.
encode
(
'
ascii
'
)
if
not
STATIC_URL
.
endswith
(
"
/
"
):
STATIC_URL
+=
"
/
"
STATIC_URL
+=
EDX_PLATFORM_REVISION
+
"
/
"
STATIC_URL
+=
'
studio/
'
if
STATIC_ROOT_BASE
:
STATIC_ROOT
=
path
(
STATIC_ROOT_BASE
)
/
EDX_PLATFORM_REVISION
STATIC_ROOT
=
path
(
STATIC_ROOT_BASE
)
/
'
studio
'
# Cache used for location mapping -- called many times with the same key/value
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment