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
8f12bb0a
Commit
8f12bb0a
authored
Oct 21, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #345 from edx/feanil/update_integration
Feanil/update integration
parents
79595fc2
a5d0d342
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
playbooks/roles/edxapp/tasks/deploy.yml
+20
-20
util/jenkins/ansible-deploy.sh
+2
-0
No files found.
playbooks/roles/edxapp/tasks/deploy.yml
View file @
8f12bb0a
...
...
@@ -201,6 +201,26 @@
-
name
:
changing group ownership to www-data for everything in the venv (workaround)
shell
:
chgrp -R www-data {{ venv_dir }}
-
name
:
syncdb and migrate
shell
:
sudo -u www-data SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py syncdb --migrate --noinput --settings=lms.envs.aws --pythonpath=/opt/wwc/edx-platform
when
:
migrate_db is defined and migrate_db|lower == "yes"
tags
:
-
deploy
-
lms
-
lms-preview
-
cms
-
syncdb
-
name
:
db migrate
shell
:
sudo -u www-data SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py migrate --noinput --settings=lms.envs.aws --pythonpath=/opt/wwc/edx-platform
when
:
migrate_only is defined and migrate_only|lower == "yes"
tags
:
-
deploy
-
lms
-
lms-preview
-
cms
-
migrate
# Gather lms assets using rake if possible
-
name
:
gather lms static assets with rake
...
...
@@ -244,26 +264,6 @@
-
cms
-
syncdb
-
name
:
syncdb and migrate
shell
:
sudo -u www-data SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py syncdb --migrate --noinput --settings=lms.envs.aws --pythonpath=/opt/wwc/edx-platform
when
:
migrate_db is defined and migrate_db|lower == "yes"
tags
:
-
deploy
-
lms
-
lms-preview
-
cms
-
syncdb
-
name
:
db migrate
shell
:
sudo -u www-data SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py migrate --noinput --settings=lms.envs.aws --pythonpath=/opt/wwc/edx-platform
when
:
migrate_only is defined and migrate_only|lower == "yes"
tags
:
-
deploy
-
lms
-
lms-preview
-
cms
-
migrate
-
name
:
restart edxapp
service
:
name=edxapp state=restarted
when
:
celery_worker is not defined
...
...
util/jenkins/ansible-deploy.sh
View file @
8f12bb0a
...
...
@@ -50,6 +50,8 @@ ease_version: $ease_version
ansible_ssh_private_key_file: /var/lib/jenkins/
${
keypair
}
.pem
PYPI_MIRROR_URL: 'https://pypi.edx.org/root/pypi/+simple/'
GIT_MIRROR: 'git.edx.org'
migrate_only: '
$run_migration
'
EOF
cat
$extra_vars
...
...
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