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
61d26cae
Commit
61d26cae
authored
May 20, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mainly fix gunicorn templates for var format consistency
parent
f36ff4c6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
22 deletions
+21
-22
playbooks/roles/gunicorn/templates/cms.conf.j2
+4
-4
playbooks/roles/gunicorn/templates/lms-preview.conf.j2
+5
-5
playbooks/roles/gunicorn/templates/lms-xml.conf.j2
+5
-6
playbooks/roles/gunicorn/templates/lms.conf.j2
+5
-5
playbooks/roles/npm/tasks/main.yml
+2
-2
No files found.
playbooks/roles/gunicorn/templates/cms.conf.j2
View file @
61d26cae
...
...
@@ -4,15 +4,15 @@
description "gunicorn server"
author "Calen Pennington <cpennington@mitx.mit.edu>"
start on
runlevel [2345]
stop on
runlevel [!2345]
start on
started edxapp
stop on
stopped edxapp
respawn
respawn limit 3 30
env PID=/var/tmp/cms.pid
#env NEW_RELIC_CONFIG_FILE=
${app_base_dir
}/newrelic.ini
#env NEWRELIC=
${venv_dir
}/bin/newrelic-admin
#env NEW_RELIC_CONFIG_FILE=
{{app_base_dir}
}/newrelic.ini
#env NEWRELIC=
{{venv_dir}
}/bin/newrelic-admin
env WORKERS={{ ansible_processor_cores * 2 }}
env PORT=8010
env LANG=en_US.UTF-8
...
...
playbooks/roles/gunicorn/templates/lms-preview.conf.j2
View file @
61d26cae
...
...
@@ -3,15 +3,15 @@
description "gunicorn server"
author "Calen Pennington <cpennington@mitx.mit.edu>"
start on
runlevel [2345]
stop on
runlevel [!2345]
start on
started edxapp
stop on
stopped edxapp
respawn
respawn limit 3 30
env PID=/var/tmp/lms.pid
#env NEW_RELIC_CONFIG_FILE=
${app_base_dir
}/newrelic.ini
#env NEWRELIC=
${venv_dir
}/bin/newrelic-admin
#env NEW_RELIC_CONFIG_FILE=
{{app_base_dir}
}/newrelic.ini
#env NEWRELIC=
{{venv_dir}
}/bin/newrelic-admin
env WORKERS={{ ansible_processor_cores * 2 }}
env PORT=8020
env LANG=en_US.UTF-8
...
...
@@ -21,7 +21,7 @@ env SERVICE_VARIANT="lms-preview"
chdir {{platform_code_dir}}
setuid www-data
exec
${venv_dir
}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath={{platform_code_dir}} lms.wsgi
exec
{{venv_dir}
}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath={{platform_code_dir}} lms.wsgi
post-start script
while true
...
...
playbooks/roles/gunicorn/templates/lms-xml.conf.j2
View file @
61d26cae
...
...
@@ -10,19 +10,18 @@ respawn
respawn limit 3 30
env PID=/var/tmp/lms-xml.pid
env NEW_RELIC_CONFIG_FILE=/opt/wwc
/newrelic.ini
env NEWRELIC=/opt/edx
/bin/newrelic-admin
env WORKERS=
4
#env NEW_RELIC_CONFIG_FILE={{app_base_dir}}
/newrelic.ini
#env NEWRELIC={{venv_dir}}
/bin/newrelic-admin
env WORKERS=
{{ ansible_processor_cores * 4 }}
env PORT=8030
env LANG=en_US.UTF-8
env DJANGO_SETTINGS_MODULE=lms.envs.aws
env SERVICE_VARIANT="lms-xml"
chdir /opt/wwc/edx-platform
chdir {{platform_code_dir}}
setuid www-data
exec
$NEWRELIC run-program /opt/edx/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath=/opt/wwc/edx-platform
lms.wsgi
exec
{{venv_dir}}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath={{platform_code_dir}}
lms.wsgi
post-start script
while true
...
...
playbooks/roles/gunicorn/templates/lms.conf.j2
View file @
61d26cae
...
...
@@ -3,15 +3,15 @@
description "gunicorn server"
author "Calen Pennington <cpennington@mitx.mit.edu>"
start on
runlevel [2345]
stop on
runlevel [!2345]
start on
started edxapp
stop on
stopped edxapp
respawn
respawn limit 3 30
env PID=/var/tmp/lms.pid
#env NEW_RELIC_CONFIG_FILE=
${app_base_dir
}/newrelic.ini
#env NEWRELIC=
${venv_dir
}/bin/newrelic-admin
#env NEW_RELIC_CONFIG_FILE=
{{app_base_dir}
}/newrelic.ini
#env NEWRELIC=
{{venv_dir}
}/bin/newrelic-admin
env WORKERS={{ ansible_processor_cores * 2 }}
env PORT=8000
env LANG=en_US.UTF-8
...
...
@@ -21,7 +21,7 @@ env SERVICE_VARIANT="lms"
chdir {{platform_code_dir}}
setuid www-data
exec
${venv_dir
}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath={{platform_code_dir}} lms.wsgi
exec
{{venv_dir}
}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath={{platform_code_dir}} lms.wsgi
post-start script
while true
...
...
playbooks/roles/npm/tasks/main.yml
View file @
61d26cae
...
...
@@ -2,8 +2,8 @@
# - common/tasks/main.yml
# - ruby/tasks/main.yml
---
-
name
:
Install n
odejs, and by extension n
pm
apt
:
pkg=n
odejs
state=present install_recommends=no
-
name
:
Install npm
apt
:
pkg=n
pm
state=present install_recommends=no
tags
:
-
npm
-
install
...
...
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