Merge pull request #1433 from edx/jarv/static-root

Jarv/static root
This commit is contained in:
John Jarvis
2013-10-22 09:09:07 -07:00
2 changed files with 9 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ from logsettings import get_logger_config
import os
from path import path
from dealer.git import git
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
# configuration files are read during startup.
@@ -85,6 +86,10 @@ CELERY_QUEUES = {
with open(CONFIG_ROOT / CONFIG_PREFIX + "env.json") as env_file:
ENV_TOKENS = json.load(env_file)
# STATIC_ROOT specifies the directory where static files are
# collected
STATIC_ROOT = path(ENV_TOKENS.get('STATIC_ROOT', STATIC_ROOT)) / git.revision
EMAIL_BACKEND = ENV_TOKENS.get('EMAIL_BACKEND', EMAIL_BACKEND)
EMAIL_FILE_PATH = ENV_TOKENS.get('EMAIL_FILE_PATH', None)
LMS_BASE = ENV_TOKENS.get('LMS_BASE')