From 54bb55fa522a5a400ae2b29c1463d07285c94844 Mon Sep 17 00:00:00 2001 From: John Jarvis Date: Tue, 19 Nov 2013 11:35:45 -0500 Subject: [PATCH] fixes issue where STATIC_URL was overwritten without git.revision fixes this commit - https://github.com/edx/edx-platform/commit/5ec77010e3bc0303cdb06ebf32e806936fd36ce6 --- cms/envs/aws.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cms/envs/aws.py b/cms/envs/aws.py index 5d17d9c157..e30a9b6f85 100644 --- a/cms/envs/aws.py +++ b/cms/envs/aws.py @@ -86,7 +86,11 @@ CELERY_QUEUES = { with open(CONFIG_ROOT / CONFIG_PREFIX + "env.json") as env_file: ENV_TOKENS = json.load(env_file) -# STATIC_URL specifies the url to use for static files +# STATIC_URL_BASE specifies the base url to use for static files +STATIC_URL_BASE = ENV_TOKENS.get('STATIC_URL_BASE', None) +if STATIC_URL_BASE: + STATIC_URL = STATIC_URL_BASE + git.revision + "/" + STATIC_URL = ENV_TOKENS.get('STATIC_URL', STATIC_URL) # GITHUB_REPO_ROOT is the base directory # for course data