Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Adding handling of LMS_CFG env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
blarghmatey committed Jun 4, 2020
1 parent f7da883 commit 52a2572
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gitreload/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
installation.
"""

VERSION = '0.2.2'
VERSION = '0.2.3'
2 changes: 1 addition & 1 deletion gitreload/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Config:
"""
REPODIR = os.environ.get('REPODIR', '/mnt/data/repos')
VIRTUAL_ENV = os.environ.get('VIRTUAL_ENV', '/edx/app/edxapp/venvs/edxapp')
DJANGO_SETTINGS = os.environ.get('DJANGO_SETTINGS', 'aws')
DJANGO_SETTINGS = os.environ.get('DJANGO_SETTINGS', 'production')
EDX_PLATFORM = os.environ.get('EDX_PLATFORM', '/edx/app/edxapp/edx-platform')
LINKED_REPOS = os.environ.get('LINKED_REPOS', {})
ALSO_CLONE_REPOS = os.environ.get('ALSO_CLONE_REPOS', {})
Expand Down
1 change: 1 addition & 0 deletions gitreload/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def import_repo(action_call):
installation.
"""
os.environ['SERVICE_VARIANT'] = 'lms'
os.environ['LMS_CFG'] = config.Config.DJANGO_SETTINGS
cmd = [
'{0}/bin/python'.format(config.Config.VIRTUAL_ENV),
'manage.py',
Expand Down

0 comments on commit 52a2572

Please sign in to comment.