Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
OpenEdx
configuration
Commits
f8182063
Commit
f8182063
authored
Apr 25, 2014
by
e0d
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1039 from edx/e0d/preview
E0d/preview
parents
62554cd7
5b8d3db4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
35 deletions
+6
-35
playbooks/roles/edxapp/defaults/main.yml
+6
-14
playbooks/roles/edxapp/templates/lms-preview.auth.json.j2
+0
-2
playbooks/roles/edxapp/templates/lms-preview.conf.j2
+0
-14
playbooks/roles/edxapp/templates/lms-preview.env.json.j2
+0
-5
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
f8182063
...
...
@@ -412,12 +412,14 @@ generic_env_config: &edxapp_generic_env
CAS_SERVER_URL
:
$EDXAPP_CAS_SERVER_URL
CAS_EXTRA_LOGIN_PARAMS
:
$EDXAPP_CAS_EXTRA_LOGIN_PARAMS
CAS_ATTRIBUTE_CALLBACK
:
$EDXAPP_CAS_ATTRIBUTE_CALLBACK
HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS
:
'
preview\.'
:
'
draft'
lms_auth_config
:
<<
:
*edxapp_generic_auth
CC_PROCESSOR
:
$EDXAPP_CC_PROCESSOR
MODULESTORE
:
default
:
default
:
&lms_default_modulestore
ENGINE
:
'
xmodule.modulestore.mixed.MixedModuleStore'
OPTIONS
:
mappings
:
$EDXAPP_XML_MAPPINGS
...
...
@@ -440,7 +442,9 @@ lms_auth_config:
fs_root
:
$edxapp_course_data_dir
ENGINE
:
'
xmodule.modulestore.mongo.MongoModuleStore'
DOC_STORE_CONFIG
:
*edxapp_generic_default_docstore
draft
:
<<
:
*edxapp_generic_default_modulestore
ENGINE
:
'
xmodule.modulestore.mongo.DraftMongoModuleStore'
lms_env_config
:
<<
:
*edxapp_generic_env
PAID_COURSE_REGISTRATION_CURRENCY
:
$EDXAPP_PAID_COURSE_REGISTRATION_CURRENCY
...
...
@@ -456,14 +460,6 @@ cms_auth_config:
<<
:
*edxapp_generic_auth
cms_env_config
:
<<
:
*edxapp_generic_env
lms_preview_auth_config
:
<<
:
*edxapp_generic_auth
MODULESTORE
:
default
:
*edxapp_generic_default_modulestore
lms_preview_env_config
:
<<
:
*edxapp_generic_env
# install dir for the edx-platform repo
edxapp_code_dir
:
"
{{
edxapp_app_dir
}}/edx-platform"
...
...
@@ -474,9 +470,6 @@ edxapp_cms_gunicorn_port: 8010
edxapp_cms_gunicorn_host
:
127.0.0.1
edxapp_lms_gunicorn_port
:
8000
edxapp_lms_gunicorn_host
:
127.0.0.1
edxapp_lms_preview_gunicorn_port
:
8020
edxapp_lms_preview_gunicorn_host
:
127.0.0.1
# These vars are for creating the application json config
# files. There are two for each service that uses the
...
...
@@ -494,7 +487,6 @@ edxapp_cms_env: 'cms.envs.aws'
#Number of gunicorn worker processes to spawn, as a multiplier to number of virtual cores
worker_core_mult
:
lms
:
4
lms_preview
:
2
cms
:
2
# Theming
...
...
playbooks/roles/edxapp/templates/lms-preview.auth.json.j2
deleted
100644 → 0
View file @
62554cd7
{% do lms_auth_config.update(EDXAPP_AUTH_EXTRA) %}
{{ lms_preview_auth_config | to_nice_json }}
playbooks/roles/edxapp/templates/lms-preview.conf.j2
deleted
100644 → 0
View file @
62554cd7
[program:lms-preview]
{% if ansible_processor|length > 0 %}
command={{ edxapp_venv_dir }}/bin/gunicorn --preload -b {{ edxapp_lms_preview_gunicorn_host }}:{{ edxapp_lms_preview_gunicorn_port }} -w {{ ansible_processor|length * worker_core_mult.lms_preview }} --timeout=300 --pythonpath={{ edxapp_code_dir }} lms.wsgi
{% else %}
command={{ edxapp_venv_dir }}/bin/gunicorn --preload -b {{ edxapp_lms_preview_gunicorn_host }}:{{ edxapp_lms_preview_gunicorn_port }} -w {{ worker_core_mult.lms_preview }} --timeout=300 --pythonpath={{ edxapp_code_dir }} lms.wsgi
{% endif %}
user={{ common_web_user }}
directory={{ edxapp_code_dir }}
environment=PORT={{edxapp_lms_gunicorn_port}},ADDRESS={{edxapp_lms_gunicorn_host}},LANG={{ EDXAPP_LANG }},DJANGO_SETTINGS_MODULE={{ edxapp_lms_env }},SERVICE_VARIANT="lms-preview"
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
killasgroup=true
stopasgroup=true
playbooks/roles/edxapp/templates/lms-preview.env.json.j2
deleted
100644 → 0
View file @
62554cd7
{% do lms_preview_env_config.update(EDXAPP_ENV_EXTRA) %}
{% if EDXAPP_UPDATE_STATIC_FILES_KEY %}
{%- do lms_preview_env_config['CACHES']['staticfiles'].update({'KEY_PREFIX': edxapp_dynamic_cache_key}) %}
{% endif %}
{{ lms_preview_env_config | to_nice_json }}
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