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
5100eba6
Commit
5100eba6
authored
Oct 23, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #359 from edx/jarv/move-openid-workaround
openid workaround needs to happen before the syncdb/migrate
parents
05bc61a4
6de3a62c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
playbooks/roles/edxapp/tasks/deploy.yml
+21
-21
No files found.
playbooks/roles/edxapp/tasks/deploy.yml
View file @
5100eba6
...
...
@@ -80,7 +80,7 @@
# Ruby plays that need to be run after platform updates.
-
name
:
gem | gem install bundler
shell
:
>
RBENV_ROOT={{ rbenv_root }} GEM_HOME={{ gem_home }} {{ rbenv_root }}/shims/gem install bundle
RBENV_ROOT={{ rbenv_root }} GEM_HOME={{ gem_home }} {{ rbenv_root }}/shims/gem install bundle
chdir={{ edx_platform_code_dir }}
tags
:
-
ruby
...
...
@@ -89,7 +89,7 @@
-
name
:
bundle | bundle install
shell
:
>
RBENV_ROOT={{ rbenv_root }} GEM_HOME={{ gem_home }} {{ gem_home }}/bin/bundle install --binstubs
RBENV_ROOT={{ rbenv_root }} GEM_HOME={{ gem_home }} {{ gem_home }}/bin/bundle install --binstubs
chdir={{ edx_platform_code_dir }}
tags
:
-
ruby
...
...
@@ -129,8 +129,8 @@
# Install the python pre requirements into {{ venv_dir }}
-
name
:
install python pre-requirements
pip
:
>
requirements="{{pre_requirements_file}}"
virtualenv="{{venv_dir}}"
requirements="{{pre_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ PYPI_MIRROR_URL }}"
tags
:
...
...
@@ -154,8 +154,8 @@
# Install the python post requirements into {{ venv_dir }}
-
name
:
install python post-requirements
pip
:
>
requirements="{{post_requirements_file}}"
virtualenv="{{venv_dir}}"
requirements="{{post_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ PYPI_MIRROR_URL }}"
tags
:
...
...
@@ -201,6 +201,20 @@
-
name
:
changing group ownership to www-data for everything in the venv (workaround)
shell
:
chgrp -R www-data {{ venv_dir }}
# https://code.launchpad.net/~wligtenberg/django-openid-auth/mysql_fix/+merge/22726
# This is necessary for when syncdb is run and the django_openid_auth module is installed,
# not sure if this fix will ever get merged
# We should never do this in production
-
name
:
openid workaround - NOT FOR PRODUCTION
shell
:
sed -i -e 's/claimed_id = models.TextField(max_length=2047, unique=True/claimed_id = models.TextField(max_length=2047/' /opt/edx/lib/python2.7/site-packages/django_openid_auth/models.py
when
:
openid_workaround is defined
tags
:
-
deploy
-
lms
-
lms-preview
-
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"
...
...
@@ -219,7 +233,7 @@
-
lms
-
lms-preview
-
cms
-
migrate
-
migrate
# Gather lms assets using rake if possible
...
...
@@ -250,20 +264,6 @@
-
deploy
# https://code.launchpad.net/~wligtenberg/django-openid-auth/mysql_fix/+merge/22726
# This is necessary for when syncdb is run and the django_openid_auth module is installed,
# not sure if this fix will ever get merged
# We should never do this in production
-
name
:
openid workaround - NOT FOR PRODUCTION
shell
:
sed -i -e 's/claimed_id = models.TextField(max_length=2047, unique=True/claimed_id = models.TextField(max_length=2047/' /opt/edx/lib/python2.7/site-packages/django_openid_auth/models.py
when
:
openid_workaround is defined
tags
:
-
deploy
-
lms
-
lms-preview
-
cms
-
syncdb
-
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