Commit 44f6e1c3 by Clinton Blackburn Committed by Edward Zarecor

Added Support for Django 1.7 for Analytics API and Insights

parent 550ee796
- Role: analytics-api, insights
- Using Django 1.7 migrate command.
- Role: edxapp - Role: edxapp
- A new var was added to make it easy ot invalidate the default - A new var was added to make it easy ot invalidate the default
memcache store to make it easier to invalidate sessions. Updating memcache store to make it easier to invalidate sessions. Updating
......
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
notify: restart the analytics service notify: restart the analytics service
with_items: analytics_api_requirements with_items: analytics_api_requirements
- name: syncdb and migrate - name: migrate
shell: > shell: >
chdir={{ analytics_api_code_dir }} chdir={{ analytics_api_code_dir }}
DB_MIGRATION_USER={{ COMMON_MYSQL_MIGRATE_USER }} DB_MIGRATION_USER={{ COMMON_MYSQL_MIGRATE_USER }}
DB_MIGRATION_PASS={{ COMMON_MYSQL_MIGRATE_PASS }} DB_MIGRATION_PASS={{ COMMON_MYSQL_MIGRATE_PASS }}
{{ analytics_api_venv_bin }}/python ./manage.py syncdb --migrate --noinput {{ analytics_api_venv_bin }}/python ./manage.py migrate --noinput
sudo_user: "{{ analytics_api_user }}" sudo_user: "{{ analytics_api_user }}"
environment: "{{ analytics_api_environment }}" environment: "{{ analytics_api_environment }}"
when: migrate_db is defined and migrate_db|lower == "yes" when: migrate_db is defined and migrate_db|lower == "yes"
......
...@@ -54,12 +54,12 @@ ...@@ -54,12 +54,12 @@
. {{ insights_nodeenv_bin }}/activate && {{ insights_node_bin }}/bower install --production --config.interactive=false . {{ insights_nodeenv_bin }}/activate && {{ insights_node_bin }}/bower install --production --config.interactive=false
sudo_user: "{{ insights_user }}" sudo_user: "{{ insights_user }}"
- name: syncdb and migrate - name: migrate
shell: > shell: >
chdir={{ insights_code_dir }} chdir={{ insights_code_dir }}
DB_MIGRATION_USER={{ COMMON_MYSQL_MIGRATE_USER }} DB_MIGRATION_USER={{ COMMON_MYSQL_MIGRATE_USER }}
DB_MIGRATION_PASS={{ COMMON_MYSQL_MIGRATE_PASS }} DB_MIGRATION_PASS={{ COMMON_MYSQL_MIGRATE_PASS }}
{{ insights_venv_bin }}/python {{ insights_manage }} syncdb --migrate --noinput {{ insights_venv_bin }}/python {{ insights_manage }} migrate --noinput
sudo_user: "{{ insights_user }}" sudo_user: "{{ insights_user }}"
environment: "{{ insights_environment }}" environment: "{{ insights_environment }}"
when: migrate_db is defined and migrate_db|lower == "yes" when: migrate_db is defined and migrate_db|lower == "yes"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment