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
8412f50f
Commit
8412f50f
authored
Oct 21, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating naming convention for handlers
parent
3ca28f59
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
playbooks/roles/edxapp/handlers/main.yml
+3
-3
playbooks/roles/edxapp/tasks/deploy.yml
+14
-14
No files found.
playbooks/roles/edxapp/handlers/main.yml
View file @
8412f50f
---
-
name
:
start edxapp
-
name
:
edxapp |
start edxapp
service
:
name=edxapp state=started
tags
:
-
lms
...
...
@@ -7,7 +7,7 @@
-
cms
-
deploy
-
name
:
stop edxapp
-
name
:
edxapp |
stop edxapp
service
:
name=edxapp state=stopped
tags
:
-
lms
...
...
@@ -15,7 +15,7 @@
-
cms
-
deploy
-
name
:
restart edxapp
-
name
:
edxapp |
restart edxapp
service
:
name=edxapp state=restarted
tags
:
-
lms
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
8412f50f
...
...
@@ -157,13 +157,25 @@
tags
:
-
deploy
-
name
:
syncdb and migrate
shell
:
sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms {{ edxapp_venv_bin}}/django-admin.py syncdb --migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }}
when
:
migrate_db is defined and migrate_db|lower == "yes"
tags
:
-
deploy
-
name
:
db migrate
shell
:
sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms {{ edxapp_venv_bin }}/django-admin.py migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }}
when
:
migrate_only is defined and migrate_only|lower == "yes"
tags
:
-
deploy
# Gather lms assets using rake if possible
-
name
:
gather lms static assets with rake
shell
:
SERVICE_VARIANT={{ edxapp_lms_variant }} rake lms:gather_assets:aws
executable=/bin/bash
chdir={{ edxapp_code_dir }}
notify
:
-
restart edxapp
-
edxapp |
restart edxapp
sudo_user
:
"
{{
edxapp_user
}}"
when
:
celery_worker is not defined
environment
:
"
{{
edxapp_deploy_environment
}}"
...
...
@@ -174,7 +186,7 @@
-
name
:
gather cms static assets with rake
shell
:
executable=/bin/bash chdir={{ edxapp_code_dir }} SERVICE_VARIANT={{ edxapp_cms_variant }} rake cms:gather_assets:aws
notify
:
-
restart edxapp
-
edxapp |
restart edxapp
sudo_user
:
"
{{
edxapp_user
}}"
when
:
celery_worker is not defined
environment
:
"
{{
edxapp_deploy_environment
}}"
...
...
@@ -192,18 +204,6 @@
tags
:
-
deploy
-
name
:
syncdb and migrate
shell
:
sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py syncdb --migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }}
when
:
migrate_db is defined and migrate_db|lower == "yes"
tags
:
-
deploy
-
name
:
db migrate
shell
:
sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }}
when
:
migrate_only is defined and migrate_only|lower == "yes"
tags
:
-
deploy
-
name
:
restart edxapp
service
:
name=edxapp state=restarted
when
:
celery_worker is not defined
...
...
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