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
fd064662
Commit
fd064662
authored
Jun 27, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing stop/start back to restart now that things work for stanford
parent
10a636c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
22 deletions
+10
-22
playbooks/roles/common/tasks/create_venv.yml
+1
-0
playbooks/roles/edxapp/tasks/deploy.yml
+9
-22
No files found.
playbooks/roles/common/tasks/create_venv.yml
View file @
fd064662
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
with_items
:
with_items
:
-
python2.7
-
python2.7
-
python-pip
-
python-pip
-
python2.7-dev
tags
:
tags
:
-
pre_install
-
pre_install
-
install
-
install
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
fd064662
...
@@ -171,8 +171,7 @@
...
@@ -171,8 +171,7 @@
shell
:
executable=/bin/bash chdir={{ edx_platform_code_dir }} SERVICE_VARIANT={{ lms_variant }} rake lms:gather_assets:aws
shell
:
executable=/bin/bash chdir={{ edx_platform_code_dir }} SERVICE_VARIANT={{ lms_variant }} rake lms:gather_assets:aws
when
:
grep_gather_assets.rc == 0
when
:
grep_gather_assets.rc == 0
notify
:
notify
:
-
stop edxapp
-
restart edxapp
-
start edxapp
sudo
:
yes
sudo
:
yes
sudo_user
:
www-data
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
environment
:
"
{{
deploy_environment
}}"
...
@@ -187,8 +186,7 @@
...
@@ -187,8 +186,7 @@
shell
:
SERVICE_VARIANT={{ lms_variant }} django-admin.py collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
shell
:
SERVICE_VARIANT={{ lms_variant }} django-admin.py collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
when
:
grep_gather_assets.rc != 0 and check_lms_collect_static.rc == 0
when
:
grep_gather_assets.rc != 0 and check_lms_collect_static.rc == 0
notify
:
notify
:
-
stop edxapp
-
restart edxapp
-
start edxapp
sudo
:
yes
sudo
:
yes
sudo_user
:
www-data
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
environment
:
"
{{
deploy_environment
}}"
...
@@ -205,8 +203,7 @@
...
@@ -205,8 +203,7 @@
shell
:
executable=/bin/bash chdir={{ edx_platform_code_dir }} SERVICE_VARIANT={{ cms_variant }} rake cms:gather_assets:aws
shell
:
executable=/bin/bash chdir={{ edx_platform_code_dir }} SERVICE_VARIANT={{ cms_variant }} rake cms:gather_assets:aws
when
:
grep_gather_assets.rc == 0
when
:
grep_gather_assets.rc == 0
notify
:
notify
:
-
stop edxapp
-
restart edxapp
-
start edxapp
sudo
:
yes
sudo
:
yes
sudo_user
:
www-data
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
environment
:
"
{{
deploy_environment
}}"
...
@@ -218,8 +215,7 @@
...
@@ -218,8 +215,7 @@
shell
:
SERVICE_VARIANT={{ cms_variant }} django-admin.py collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
shell
:
SERVICE_VARIANT={{ cms_variant }} django-admin.py collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
when
:
grep_gather_assets.rc != 0 and check_cms_collect_static.rc == 0
when
:
grep_gather_assets.rc != 0 and check_cms_collect_static.rc == 0
notify
:
notify
:
-
stop edxapp
-
restart edxapp
-
start edxapp
sudo
:
yes
sudo
:
yes
sudo_user
:
www-data
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
environment
:
"
{{
deploy_environment
}}"
...
@@ -231,8 +227,7 @@
...
@@ -231,8 +227,7 @@
shell
:
SERVICE_VARIANT={{ cms_variant }} django-admin.py update_templates --pythonpath={{ edx_platform_code_dir }} --settings=cms.envs.aws
shell
:
SERVICE_VARIANT={{ cms_variant }} django-admin.py update_templates --pythonpath={{ edx_platform_code_dir }} --settings=cms.envs.aws
when
:
check_cms_update_templates.rc == 0
when
:
check_cms_update_templates.rc == 0
notify
:
notify
:
-
stop edxapp
-
restart edxapp
-
start edxapp
sudo
:
yes
sudo
:
yes
sudo_user
:
www-data
sudo_user
:
www-data
environment
:
"
{{
deploy_environment
}}"
environment
:
"
{{
deploy_environment
}}"
...
@@ -275,20 +270,11 @@
...
@@ -275,20 +270,11 @@
-
cms
-
cms
-
syncdb
-
syncdb
-
name
:
stop
edxapp
-
name
:
restart
edxapp
service
:
name=edxapp state=
stopp
ed
service
:
name=edxapp state=
restart
ed
tags
:
tags
:
-
lms
-
lms
-
lms-xml
-
lms-xml
-
lms-preview
-
lms-preview
-
cms
-
cms
-
deploy
-
deploy
\ No newline at end of file
-
name
:
start edxapp
service
:
name=edxapp state=started
tags
:
-
lms
-
lms-xml
-
lms-preview
-
cms
-
deploy
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