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
6a4e586f
Commit
6a4e586f
authored
Nov 24, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert ora gunicorn to configuration file
parent
ad926fc7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
1 deletions
+22
-1
playbooks/roles/ora/defaults/main.yml
+1
-0
playbooks/roles/ora/tasks/deploy.yml
+7
-0
playbooks/roles/ora/templates/ora.conf.j2
+1
-1
playbooks/roles/ora/templates/ora_gunicorn.py.j2
+13
-0
No files found.
playbooks/roles/ora/defaults/main.yml
View file @
6a4e586f
...
...
@@ -2,6 +2,7 @@
---
ORA_NGINX_PORT
:
18060
ORA_GUNICORN_EXTRA
:
"
"
ORA_GUNICORN_EXTRA_CONF
:
"
"
ora_app_dir
:
"
{{
COMMON_APP_DIR
}}/ora"
ora_code_dir
:
"
{{
ora_app_dir
}}/ora"
...
...
playbooks/roles/ora/tasks/deploy.yml
View file @
6a4e586f
...
...
@@ -19,6 +19,13 @@
with_items
:
[
'
ora'
,
'
ora_celery'
]
when
:
not disable_edx_services
-
name
:
"
add
gunicorn
configuration
file"
template
:
>
src=ora_gunicorn.py.j2 dest={{ ora_app_dir }}/ora_gunicorn.py
sudo_user
:
"
{{
ora_user
}}"
notify
:
-
restart ora
-
include
:
ease.yml
-
name
:
create ora application config
...
...
playbooks/roles/ora/templates/ora.conf.j2
View file @
6a4e586f
[program:ora]
command={{ ora_venv_bin }}/gunicorn -
-preload -b {{ ora_gunicorn_host }}:{{ ora_gunicorn_port }} -w {{ ora_gunicorn_workers }} --timeout=90 --pythonpath={{ ora_code_dir}}
{{ ORA_GUNICORN_EXTRA }} edx_ora.wsgi
command={{ ora_venv_bin }}/gunicorn -
c {{ ora_app_dir }}/ora_gunicorn.py
{{ ORA_GUNICORN_EXTRA }} edx_ora.wsgi
user={{ common_web_user }}
directory={{ ora_code_dir }}
...
...
playbooks/roles/ora/templates/ora_gunicorn.py.j2
0 → 100644
View file @
6a4e586f
"""
gunicorn configuration file: http://docs.gunicorn.org/en/develop/configure.html
{{ ansible_managed }}
"""
preload_app = True
timeout = 90
bind = "{{ ora_gunicorn_host }}:{{ ora_gunicorn_port }}"
pythonpath = "{{ ora_code_dir }}"
workers = {{ ora_gunicorn_workers }}
{{ ORA_GUNICORN_EXTRA_CONF }}
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