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
698a4c1f
Commit
698a4c1f
authored
Jun 11, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add restart handlers for edxapp services.
parent
835a4172
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
playbooks/roles/deploy/handlers/main.yml
+25
-0
playbooks/roles/deploy/tasks/main.yml
+14
-0
No files found.
playbooks/roles/deploy/handlers/main.yml
0 → 100644
View file @
698a4c1f
---
# Restart Start all services.
-
name
:
restart lms
service
:
name=lms state=restarted
tags
:
-
lms
-
deploy
-
name
:
restart lms-xml
service
:
name=lms-xml state=restarted
tags
:
-
lms-xml
-
deploy
-
name
:
restart lms-preview
service
:
name=lms-preview state=restarted
tags
:
-
lms-preview
-
deploy
-
name
:
restart cms
service
:
name=cms state=restarted
tags
:
-
cms
-
deploy
playbooks/roles/deploy/tasks/main.yml
View file @
698a4c1f
...
...
@@ -78,6 +78,10 @@
-
name
:
gather lms static assets with rake
shell
:
executable=/bin/bash chdir=/opt/wwc/edx-platform SERVICE_VARIANT={{ LMS_VARIANT }} rake lms:gather_assets:aws
when
:
grep_gather_assets.rc == 0
notify
:
-
restart lms
-
restart lms-xml
-
restart lms-preview
sudo
:
yes
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
...
...
@@ -91,6 +95,10 @@
-
name
:
gather lms static assets with django
shell
:
SERVICE_VARIANT={{ LMS_VARIANT }} django-admin.py collectstatic --pythonpath=/opt/wwc/edx-platform --settings=lms.envs.aws
when
:
grep_gather_assets.rc != 0 and check_lms_collect_static.rc == 0
notify
:
-
restart lms
-
restart lms-xml
-
restart lms-preview
sudo
:
yes
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
...
...
@@ -106,6 +114,8 @@
# script: gather_assets.sh
shell
:
executable=/bin/bash chdir=/opt/wwc/edx-platform SERVICE_VARIANT={{ CMS_VARIANT }} rake cms:gather_assets:aws
when
:
grep_gather_assets.rc == 0
notify
:
-
restart cms
sudo
:
yes
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
...
...
@@ -116,6 +126,8 @@
-
name
:
gather cms static assets with django
shell
:
SERVICE_VARIANT={{ CMS_VARIANT }} django-admin.py collectstatic --pythonpath=/opt/wwc/edx-platform --settings=lms.envs.aws --noinput --verbosity=0
when
:
grep_gather_assets.rc != 0 and check_cms_collect_static.rc == 0
notify
:
-
restart cms
sudo
:
yes
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
...
...
@@ -126,6 +138,8 @@
-
name
:
update cms templates
shell
:
SERVICE_VARIANT={{ CMS_VARIANT }} django-admin.py update_templates --pythonpath=/opt/wwc/edx-platform --settings=cms.envs.aws
when
:
check_cms_update_templates.rc == 0
notify
:
-
restart cms
sudo
:
yes
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
...
...
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