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
57063bee
Commit
57063bee
authored
9 years ago
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate a migrate command for each non-read-replica DB
When we have multiple DBs, this will do the right thing.
parent
243ad1b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
playbooks/roles/edxapp/templates/edx/bin/edxapp-migrate-cms.j2
+5
-1
playbooks/roles/edxapp/templates/edx/bin/edxapp-migrate-lms.j2
+5
-1
No files found.
playbooks/roles/edxapp/templates/edx/bin/edxapp-migrate-cms.j2
View file @
57063bee
{% include "edxapp_common.j2" %}
{% include "edxapp_common.j2" %}
sudo -E -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin}}/python manage.py cms migrate --noinput --settings $EDX_PLATFORM_SETTINGS
{% for db in cms_auth_config.DATABASES.keys() %}
{%- if db != 'read_replica' %}
sudo -E -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin}}/python manage.py cms migrate --database {{ db }} --noinput --settings $EDX_PLATFORM_SETTINGS
{% endif %}
{% endfor %}
This diff is collapsed.
Click to expand it.
playbooks/roles/edxapp/templates/edx/bin/edxapp-migrate-lms.j2
View file @
57063bee
{% include "edxapp_common.j2" %}
{% include "edxapp_common.j2" %}
sudo -E -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin}}/python manage.py lms migrate --noinput --settings $EDX_PLATFORM_SETTINGS
{% for db in lms_auth_config.DATABASES.keys() %}
{%- if db != 'read_replica' %}
sudo -E -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin}}/python manage.py lms migrate --database {{ db }} --noinput --settings $EDX_PLATFORM_SETTINGS
{% endif %}
{% endfor %}
This diff is collapsed.
Click to expand it.
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