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
4a9fc07b
Commit
4a9fc07b
authored
Jun 28, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ora virtualenv bootstrap
parent
83205603
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
playbooks/roles/ora/tasks/deploy.yml
+5
-5
playbooks/roles/ora/tasks/main.yml
+10
-0
playbooks/roles/ora/vars/main.yml
+1
-1
No files found.
playbooks/roles/ora/tasks/deploy.yml
View file @
4a9fc07b
...
...
@@ -54,7 +54,7 @@
# portions of the deploy needs to be incorporated here.
# Install the python pre requirements into {{ venv_dir }}
# Install the python pre requirements into {{
ora_
venv_dir }}
-
name
:
install python pre-requirements
pip
:
requirements="{{ora_pre_requirements_file}}" virtualenv="{{venv_dir}}" state=present
notify
:
...
...
@@ -64,9 +64,9 @@
-
ora
-
deploy
# Install the python post requirements into {{ venv_dir }}
# Install the python post requirements into {{
ora_
venv_dir }}
-
name
:
install python post-requirements
pip
:
requirements="{{ora_post_requirements_file}}" virtualenv="{{venv_dir}}" state=present
pip
:
requirements="{{ora_post_requirements_file}}" virtualenv="{{
ora_
venv_dir}}" state=present
notify
:
-
restart edx-ora
-
restart edx-ora-celery
...
...
@@ -85,7 +85,7 @@
-
deploy
-
name
:
syncdb and migrate
shell
:
sudo -u www-data {{venv_dir}}/bin/django-admin.py syncdb --migrate --noinput --settings=edx_ora.aws --pythonpath={{ora_code_dir}}
shell
:
sudo -u www-data {{
ora_
venv_dir}}/bin/django-admin.py syncdb --migrate --noinput --settings=edx_ora.aws --pythonpath={{ora_code_dir}}
when
:
migrate_db
notify
:
-
restart edx-ora
...
...
@@ -96,7 +96,7 @@
-
deploy
-
name
:
create users
shell
:
sudo -u www-data {{venv_dir}}/bin/django-admin.py update_users --settings=edx_ora.aws --pythonpath={{ora_code_dir}}
shell
:
sudo -u www-data {{
ora_
venv_dir}}/bin/django-admin.py update_users --settings=edx_ora.aws --pythonpath={{ora_code_dir}}
notify
:
-
restart edx-ora
-
restart edx-ora-celery
...
...
playbooks/roles/ora/tasks/main.yml
View file @
4a9fc07b
...
...
@@ -51,6 +51,16 @@
tags
:
-
ora
-
name
:
create the ora virtual environment
file
:
path={{ ora_venv_dir }} owner=root group=adm mode=2775 state=directory
tags
:
-
ora
-
name
:
bootstrap the ora virtual environment
command
:
/usr/local/bin/virtualenv {{ ora_venv_dir }} --distribute creates={{ora_venv_dir}}/bin/activate
tags
:
-
ora
# Install nginx site
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=ora
...
...
playbooks/roles/ora/vars/main.yml
View file @
4a9fc07b
...
...
@@ -4,7 +4,7 @@ ora_code_dir: "{{ app_base_dir }}/edx-ora"
# Default nginx listen port
# These should be overrided if you want
# to serve all content on port 80
ora_venv_dir
:
"
/opt/edx"
ora_gunicorn_workers
:
4
ora_nginx_port
:
18091
ora_gunicorn_port
:
8091
...
...
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