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
edx
configuration
Commits
96d038f7
Commit
96d038f7
authored
Jun 12, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start/Stop all services using the edxapp role upstart script.
parent
85e0bcde
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
46 deletions
+9
-46
playbooks/roles/edxapp/handlers/main.yml
+2
-17
playbooks/roles/edxapp/tasks/deploy.yml
+7
-29
No files found.
playbooks/roles/edxapp/handlers/main.yml
View file @
96d038f7
---
# Restart Start all services.
-
name
:
restart
lms
service
:
name=
lms
state=restarted
-
name
:
restart
edxapp
service
:
name=
edxapp
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/edxapp/tasks/deploy.yml
View file @
96d038f7
# Stop all services.
-
name
:
stop
lms service
service
:
name=
lms
state=stopped
-
name
:
stop
edxapp services
service
:
name=
edxapp
state=stopped
tags
:
-
lms
-
deploy
-
name
:
stop lms-xml service
service
:
name=lms-xml state=stopped
tags
:
-
lms-xml
-
deploy
-
name
:
stop lms-preview service
service
:
name=lms-preview state=stopped
tags
:
-
lms-preview
-
deploy
-
name
:
stop cms service
service
:
name=cms state=stopped
tags
:
-
cms
-
deploy
# Do the checkout.
# Already done via the edxapp role.
# TODO: Move it here.
# Do Post Checkout Tasks.
...
...
@@ -79,9 +61,7 @@
shell
:
executable=/bin/bash chdir={{ platform_code_dir }} SERVICE_VARIANT={{ lms_variant }} rake lms:gather_assets:aws
when
:
grep_gather_assets.rc == 0
notify
:
-
restart lms
-
restart lms-xml
-
restart lms-preview
-
restart edxapp
sudo
:
yes
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
...
...
@@ -96,9 +76,7 @@
shell
:
SERVICE_VARIANT={{ lms_variant }} django-admin.py collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
when
:
grep_gather_assets.rc != 0 and check_lms_collect_static.rc == 0
notify
:
-
restart lms
-
restart lms-xml
-
restart lms-preview
-
restart edxapp
sudo
:
yes
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
...
...
@@ -115,7 +93,7 @@
shell
:
executable=/bin/bash chdir={{ platform_code_dir }} SERVICE_VARIANT={{ cms_variant }} rake cms:gather_assets:aws
when
:
grep_gather_assets.rc == 0
notify
:
-
restart
cms
-
restart
edxapp
sudo
:
yes
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
...
...
@@ -127,7 +105,7 @@
shell
:
SERVICE_VARIANT={{ cms_variant }} django-admin.py collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
when
:
grep_gather_assets.rc != 0 and check_cms_collect_static.rc == 0
notify
:
-
restart
cms
-
restart
edxapp
sudo
:
yes
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
...
...
@@ -139,7 +117,7 @@
shell
:
SERVICE_VARIANT={{ cms_variant }} django-admin.py update_templates --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
when
:
check_cms_update_templates.rc == 0
notify
:
-
restart
cms
-
restart
edxapp
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