Commit ea85905c by Joe Blaylock

Merge pull request #123 from edx/fix/jbau/edxapp_instead_of_lms_cms_in_production

use edxapp instead of individual gunicorn processes
parents cc5be387 87bb55e4
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
- "{{ secure_dir }}/vars/users.yml" - "{{ secure_dir }}/vars/users.yml"
- "{{ secure_dir }}/vars/edxapp_prod_users.yml" - "{{ secure_dir }}/vars/edxapp_prod_users.yml"
- "{{ secure_dir }}/vars/shib_prod_vars.yml" - "{{ secure_dir }}/vars/shib_prod_vars.yml"
vars: vars:
secure_dir: '../../../configuration-secure/ansible' secure_dir: '../../../configuration-secure/ansible'
# this indicates the path to site-specific (with precedence) # this indicates the path to site-specific (with precedence)
......
...@@ -15,9 +15,9 @@ WSGIRestrictEmbedded On ...@@ -15,9 +15,9 @@ WSGIRestrictEmbedded On
SetEnv SERVICE_VARIANT lms SetEnv SERVICE_VARIANT lms
WSGIScriptAlias / {{platform_code_dir}}/lms/wsgi_apache_lms.py WSGIScriptAlias / {{edx_platform_code_dir}}/lms/wsgi_apache_lms.py
<Directory {{platform_code_dir}}/lms> <Directory {{edx_platform_code_dir}}/lms>
<Files wsgi_apache_lms.py> <Files wsgi_apache_lms.py>
Order deny,allow Order deny,allow
Allow from all Allow from all
...@@ -39,7 +39,7 @@ WSGIRestrictEmbedded On ...@@ -39,7 +39,7 @@ WSGIRestrictEmbedded On
require valid-user require valid-user
</Location> </Location>
WSGIDaemonProcess lms user=www-data group=adm processes=1 python-path={{platform_code_dir}}:{{venv_dir}}/lib/python2.7/site-packages display-name=%{GROUP} WSGIDaemonProcess lms user=www-data group=adm processes=1 python-path={{edx_platform_code_dir}}:{{venv_dir}}/lib/python2.7/site-packages display-name=%{GROUP}
WSGIProcessGroup lms WSGIProcessGroup lms
WSGIApplicationGroup %{GLOBAL} WSGIApplicationGroup %{GLOBAL}
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
- update - update
- name: Creating env users - name: Creating env users
user: name={{ item.user }} groups={{ ",".join(item.groups) }} shell=/bin/bash user: name={{ item.user }} {% if item.groups %}groups={{ ",".join(item.groups) }}{% endif %} shell=/bin/bash
with_items: env_users with_items: env_users
when: env_users is defined when: env_users is defined
tags: tags:
......
...@@ -149,4 +149,4 @@ deploy_environment: ...@@ -149,4 +149,4 @@ deploy_environment:
SKIP_WS_MIGRATIONS: 1 SKIP_WS_MIGRATIONS: 1
RBENV_ROOT: "{{ rbenv_root }}" RBENV_ROOT: "{{ rbenv_root }}"
GEM_HOME: "{{ gem_home }}" GEM_HOME: "{{ gem_home }}"
PATH: "{{ venv_dir }}/bin:{{ edx_platform_code_dir }}/bin:{{ rbenv_root }}/bin:{{ rbenv_root }}/shims:{{ gem_home }}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" PATH: "{{ venv_dir }}/bin:{{ edx_platform_code_dir }}/bin:{{ rbenv_root }}/bin:{{ rbenv_root }}/shims:{{ gem_home }}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
...@@ -6,27 +6,9 @@ ...@@ -6,27 +6,9 @@
# - ruby/tasks/main.yml # - ruby/tasks/main.yml
# - npm/tasks/main.yml # - npm/tasks/main.yml
--- ---
- name: Make sure LMS is running - name: Make sure edxapp is running
service: name=lms state=started service: name=edxapp state=started
tags: tags:
- lms
- lms-env
- production
- update
- name: Make sure CMS is running
service: name=cms state=started
tags:
- cms
- cms-env
- production
- update
- name: Make sure LMS-preview is running
service: name=lms-preview state=started
tags:
- lms-preview
- lms-preview-env
- production - production
- update - update
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment