Commit 61d26cae by Jason Bau

mainly fix gunicorn templates for var format consistency

parent f36ff4c6
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
description "gunicorn server" description "gunicorn server"
author "Calen Pennington <cpennington@mitx.mit.edu>" author "Calen Pennington <cpennington@mitx.mit.edu>"
start on runlevel [2345] start on started edxapp
stop on runlevel [!2345] stop on stopped edxapp
respawn respawn
respawn limit 3 30 respawn limit 3 30
env PID=/var/tmp/cms.pid env PID=/var/tmp/cms.pid
#env NEW_RELIC_CONFIG_FILE=${app_base_dir}/newrelic.ini #env NEW_RELIC_CONFIG_FILE={{app_base_dir}}/newrelic.ini
#env NEWRELIC=${venv_dir}/bin/newrelic-admin #env NEWRELIC={{venv_dir}}/bin/newrelic-admin
env WORKERS={{ ansible_processor_cores * 2 }} env WORKERS={{ ansible_processor_cores * 2 }}
env PORT=8010 env PORT=8010
env LANG=en_US.UTF-8 env LANG=en_US.UTF-8
......
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
description "gunicorn server" description "gunicorn server"
author "Calen Pennington <cpennington@mitx.mit.edu>" author "Calen Pennington <cpennington@mitx.mit.edu>"
start on runlevel [2345] start on started edxapp
stop on runlevel [!2345] stop on stopped edxapp
respawn respawn
respawn limit 3 30 respawn limit 3 30
env PID=/var/tmp/lms.pid env PID=/var/tmp/lms.pid
#env NEW_RELIC_CONFIG_FILE=${app_base_dir}/newrelic.ini #env NEW_RELIC_CONFIG_FILE={{app_base_dir}}/newrelic.ini
#env NEWRELIC=${venv_dir}/bin/newrelic-admin #env NEWRELIC={{venv_dir}}/bin/newrelic-admin
env WORKERS={{ ansible_processor_cores * 2 }} env WORKERS={{ ansible_processor_cores * 2 }}
env PORT=8020 env PORT=8020
env LANG=en_US.UTF-8 env LANG=en_US.UTF-8
...@@ -21,7 +21,7 @@ env SERVICE_VARIANT="lms-preview" ...@@ -21,7 +21,7 @@ env SERVICE_VARIANT="lms-preview"
chdir {{platform_code_dir}} chdir {{platform_code_dir}}
setuid www-data 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 post-start script
while true while true
......
...@@ -10,19 +10,18 @@ respawn ...@@ -10,19 +10,18 @@ respawn
respawn limit 3 30 respawn limit 3 30
env PID=/var/tmp/lms-xml.pid env PID=/var/tmp/lms-xml.pid
env NEW_RELIC_CONFIG_FILE=/opt/wwc/newrelic.ini #env NEW_RELIC_CONFIG_FILE={{app_base_dir}}/newrelic.ini
env NEWRELIC=/opt/edx/bin/newrelic-admin #env NEWRELIC={{venv_dir}}/bin/newrelic-admin
env WORKERS=4 env WORKERS={{ ansible_processor_cores * 4 }}
env PORT=8030 env PORT=8030
env LANG=en_US.UTF-8 env LANG=en_US.UTF-8
env DJANGO_SETTINGS_MODULE=lms.envs.aws env DJANGO_SETTINGS_MODULE=lms.envs.aws
env SERVICE_VARIANT="lms-xml" env SERVICE_VARIANT="lms-xml"
chdir {{platform_code_dir}}
chdir /opt/wwc/edx-platform
setuid www-data 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 post-start script
while true while true
......
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
description "gunicorn server" description "gunicorn server"
author "Calen Pennington <cpennington@mitx.mit.edu>" author "Calen Pennington <cpennington@mitx.mit.edu>"
start on runlevel [2345] start on started edxapp
stop on runlevel [!2345] stop on stopped edxapp
respawn respawn
respawn limit 3 30 respawn limit 3 30
env PID=/var/tmp/lms.pid env PID=/var/tmp/lms.pid
#env NEW_RELIC_CONFIG_FILE=${app_base_dir}/newrelic.ini #env NEW_RELIC_CONFIG_FILE={{app_base_dir}}/newrelic.ini
#env NEWRELIC=${venv_dir}/bin/newrelic-admin #env NEWRELIC={{venv_dir}}/bin/newrelic-admin
env WORKERS={{ ansible_processor_cores * 2 }} env WORKERS={{ ansible_processor_cores * 2 }}
env PORT=8000 env PORT=8000
env LANG=en_US.UTF-8 env LANG=en_US.UTF-8
...@@ -21,7 +21,7 @@ env SERVICE_VARIANT="lms" ...@@ -21,7 +21,7 @@ env SERVICE_VARIANT="lms"
chdir {{platform_code_dir}} chdir {{platform_code_dir}}
setuid www-data 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 post-start script
while true while true
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
# - common/tasks/main.yml # - common/tasks/main.yml
# - ruby/tasks/main.yml # - ruby/tasks/main.yml
--- ---
- name: Install nodejs, and by extension npm - name: Install npm
apt: pkg=nodejs state=present install_recommends=no apt: pkg=npm state=present install_recommends=no
tags: tags:
- npm - npm
- install - install
......
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