Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
0a55e1ea
Commit
0a55e1ea
authored
Sep 17, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sub-environments for the lms that is running alongside the lms for debugging
parent
34541b5e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
2 deletions
+21
-2
lms/envs/cms/__init__.py
+0
-0
lms/envs/cms/aws.py
+0
-0
lms/envs/cms/dev.py
+19
-0
rakefile
+2
-2
No files found.
lms/envs/cms/__init__.py
0 → 100644
View file @
0a55e1ea
lms/envs/
with_cm
s.py
→
lms/envs/
cms/aw
s.py
View file @
0a55e1ea
File moved
lms/envs/cms/dev.py
0 → 100644
View file @
0a55e1ea
"""
Settings for the LMS that runs alongside the CMS on AWS
"""
from
..dev
import
*
MODULESTORE
=
{
'default'
:
{
'ENGINE'
:
'xmodule.modulestore.mongo.MongoModuleStore'
,
'OPTIONS'
:
{
'default_class'
:
'xmodule.raw_module.RawDescriptor'
,
'host'
:
'localhost'
,
'db'
:
'xmodule'
,
'collection'
:
'modulestore'
,
'fs_root'
:
DATA_DIR
,
'render_template'
:
'mitxmako.shortcuts.render_to_string'
,
}
}
}
rakefile
View file @
0a55e1ea
...
@@ -125,8 +125,8 @@ TEST_TASKS = []
...
@@ -125,8 +125,8 @@ TEST_TASKS = []
end
end
# Per environment tasks
# Per environment tasks
Dir
[
"
#{
system
}
/envs/*.py"
].
each
do
|
env_file
|
Dir
[
"
#{
system
}
/envs/*
*/*
.py"
].
each
do
|
env_file
|
env
=
File
.
basename
(
env_file
).
gsub
(
/\.py/
,
'
'
)
env
=
env_file
.
gsub
(
"
#{
system
}
/envs/"
,
''
).
gsub
(
/\.py/
,
''
).
gsub
(
'/'
,
'.
'
)
desc
"Attempt to import the settings file
#{
system
}
.envs.
#{
env
}
and report any errors"
desc
"Attempt to import the settings file
#{
system
}
.envs.
#{
env
}
and report any errors"
task
"
#{
system
}
:check_settings:
#{
env
}
"
=>
:predjango
do
task
"
#{
system
}
:check_settings:
#{
env
}
"
=>
:predjango
do
sh
(
"echo 'import
#{
system
}
.envs.
#{
env
}
' |
#{
django_admin
(
system
,
env
,
'shell'
)
}
"
)
sh
(
"echo 'import
#{
system
}
.envs.
#{
env
}
' |
#{
django_admin
(
system
,
env
,
'shell'
)
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment