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
6de3a62c
Commit
6de3a62c
authored
Oct 23, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openid workaround needs to happen before the syncdb/migrate
parent
05bc61a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
playbooks/roles/edxapp/tasks/deploy.yml
+14
-14
No files found.
playbooks/roles/edxapp/tasks/deploy.yml
View file @
6de3a62c
...
@@ -201,6 +201,20 @@
...
@@ -201,6 +201,20 @@
-
name
:
changing group ownership to www-data for everything in the venv (workaround)
-
name
:
changing group ownership to www-data for everything in the venv (workaround)
shell
:
chgrp -R www-data {{ venv_dir }}
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
-
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
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"
when
:
migrate_db is defined and migrate_db|lower == "yes"
...
@@ -250,20 +264,6 @@
...
@@ -250,20 +264,6 @@
-
deploy
-
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
-
name
:
restart edxapp
service
:
name=edxapp state=restarted
service
:
name=edxapp state=restarted
when
:
celery_worker is not defined
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