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
9f9a0832
Commit
9f9a0832
authored
Dec 10, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move gitreload to use gunicorn configuration file
parent
5600334f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletions
+23
-1
playbooks/roles/gitreload/defaults/main.yml
+2
-0
playbooks/roles/gitreload/tasks/deploy.yml
+6
-0
playbooks/roles/gitreload/templates/edx/app/gitreload/gitreload_gunicorn.py.j2
+14
-0
playbooks/roles/gitreload/templates/edx/app/supervisor/conf.available.d/gitreload.conf.j2
+1
-1
No files found.
playbooks/roles/gitreload/defaults/main.yml
View file @
9f9a0832
...
...
@@ -23,6 +23,8 @@ GITRELOAD_HOSTS:
-
github.com
GITRELOAD_NUM_THREADS
:
1
GITRELOAD_NGINX_PORT
:
"
18095"
GITRELOAD_GUNICORN_EXTRA
:
"
"
GITRELOAD_GUNICORN_EXTRA_CONF
:
"
"
gitreload_version
:
"
master"
gitreload_dir
:
"
{{
COMMON_APP_DIR
}}/gitreload"
...
...
playbooks/roles/gitreload/tasks/deploy.yml
View file @
9f9a0832
...
...
@@ -23,6 +23,12 @@
sudo_user
:
"
{{
gitreload_user
}}"
notify
:
restart gitreload
-
name
:
"
add
gunicorn
configuration
file"
template
:
>
src=edx/app/gitreload/gitreload_gunicorn.py.j2 dest={{ gitreload_dir }}/gitreload_gunicorn.py
sudo_user
:
"
{{
gitreload_user
}}"
notify
:
restart gitreload
-
name
:
"
writing
supervisor
script"
template
:
>
src=edx/app/supervisor/conf.available.d/gitreload.conf.j2 dest={{ supervisor_available_dir }}/gitreload.conf
...
...
playbooks/roles/gitreload/templates/edx/app/gitreload/gitreload_gunicorn.py.j2
0 → 100644
View file @
9f9a0832
"""
gunicorn configuration file: http://docs.gunicorn.org/en/develop/configure.html
{{ ansible_managed }}
"""
import multiprocessing
preload_app = True
timeout = 10
bind = "{{ gitreload_gunicorn_host }}:{{ gitreload_gunicorn_port }}"
workers = {{ gitreload_gunicorn_workers }}
{{ GITRELOAD_GUNICORN_EXTRA_CONF }}
playbooks/roles/gitreload/templates/edx/app/supervisor/conf.available.d/gitreload.conf.j2
View file @
9f9a0832
...
...
@@ -4,7 +4,7 @@ user={{ common_web_user }}
directory={{ gitreload_dir }}
umask=002
command={{ gitreload_venv }}/bin/gunicorn -
-preload -b {{ gitreload_gunicorn_host }}:{{ gitreload_gunicorn_port }} -w {{ gitreload_gunicorn_workers }} --timeout=10
gitreload.web:app
command={{ gitreload_venv }}/bin/gunicorn -
c {{ gitreload_dir }}/gitreload_gunicorn.py {{ GITRELOAD_GUNICORN_EXTRA }}
gitreload.web:app
environment=PID=/var/tmp/gitreload.pid
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
...
...
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