Commit 7cdae1c4 by Jason Bau

Move gunicorn install to top level playbook, parameterize num_workers

parent 84056e36
......@@ -6,5 +6,6 @@
roles:
- common
- nginx
- gunicorn
- lms
- ruby
......@@ -6,5 +6,6 @@
roles:
- common
- nginx
- gunicorn
- lms
- ruby
......@@ -12,7 +12,7 @@ respawn limit 3 30
env PID=/var/tmp/lms.pid
#env NEW_RELIC_CONFIG_FILE=${app_base_dir}/opt/wwc/newrelic.ini
#env NEWRELIC=${app_base_dir}/bin/newrelic-admin
env WORKERS=1
env WORKERS=${lms_num_workers}
env PORT=8000
env LANG=en_US.UTF-8
env DJANGO_SETTINGS_MODULE=lms.envs.aws
......
---
lms_num_workers: 1
\ No newline at end of file
......@@ -115,5 +115,5 @@
- lms
- cms
- include: ../../gunicorn/tasks/main.yml
# Creates LMS upstart file
- include: ../../gunicorn/tasks/upstart.yml service_variant=lms
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