From ae39e6fa8510b08c3473c4f652b6931239456540 Mon Sep 17 00:00:00 2001 From: Kevin Falcone Date: Wed, 27 Jun 2018 14:48:31 -0400 Subject: [PATCH] This resolves VPC-122 and OPS-56 I'll put it in configuration later, but why didn't we allow this years ago? The goal is to store the data dir in /edx/var/edxapp not in /edx/app/edxapp. --- cms/envs/aws.py | 1 + lms/envs/aws.py | 1 + 2 files changed, 2 insertions(+) diff --git a/cms/envs/aws.py b/cms/envs/aws.py index 965ff06610..d5b652af06 100644 --- a/cms/envs/aws.py +++ b/cms/envs/aws.py @@ -159,6 +159,7 @@ ALLOWED_HOSTS = [ ] LOG_DIR = ENV_TOKENS['LOG_DIR'] +DATA_DIR = ENV_TOKENS.get('DATA_DIR', DATA_DIR) CACHES = ENV_TOKENS['CACHES'] # Cache used for location mapping -- called many times with the same key/value diff --git a/lms/envs/aws.py b/lms/envs/aws.py index a497f31c90..3c760c6fdc 100644 --- a/lms/envs/aws.py +++ b/lms/envs/aws.py @@ -324,6 +324,7 @@ WIKI_ENABLED = ENV_TOKENS.get('WIKI_ENABLED', WIKI_ENABLED) local_loglevel = ENV_TOKENS.get('LOCAL_LOGLEVEL', 'INFO') LOG_DIR = ENV_TOKENS['LOG_DIR'] +DATA_DIR = ENV_TOKENS.get('DATA_DIR', DATA_DIR) LOGGING = get_logger_config(LOG_DIR, logging_env=ENV_TOKENS['LOGGING_ENV'],