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
edx
configuration
Commits
f0502ea3
Commit
f0502ea3
authored
Dec 01, 2015
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Django 1.8 doesn't need to syncdb
https://docs.djangoproject.com/en/1.8/ref/django-admin/#syncdb
parent
1c434735
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
playbooks/edx-east/edxapp_migrate.yml
+0
-13
util/jenkins/check-migrations.sh
+0
-8
No files found.
playbooks/edx-east/edxapp_migrate.yml
View file @
f0502ea3
...
...
@@ -4,20 +4,7 @@
gather_facts
:
False
vars
:
db_dry_run
:
"
--list"
syncdb
:
false
tasks
:
-
name
:
syncdb
shell
:
>
chdir={{ edxapp_code_dir }}
python manage.py {{ item }} syncdb --noinput --settings=aws_migrate
environment
:
DB_MIGRATION_USER
:
"
{{
COMMON_MYSQL_MIGRATE_USER
}}"
DB_MIGRATION_PASS
:
"
{{
COMMON_MYSQL_MIGRATE_PASS
}}"
when
:
syncdb
with_items
:
-
lms
-
cms
# Syncdb with migrate when the migrate user is overridden in extra vars
-
name
:
migrate
shell
:
>
chdir={{ edxapp_code_dir }}
...
...
util/jenkins/check-migrations.sh
View file @
f0502ea3
...
...
@@ -41,19 +41,12 @@ if [[ -f ${WORKSPACE}/configuration-secure/ansible/vars/${deployment}.yml ]]; th
extra_var_args+
=
" -e@
${
WORKSPACE
}
/configuration-secure/ansible/vars/
${
deployment
}
.yml"
fi
if
[[
-z
$syncdb
]]
;
then
syncdb
=
"false"
fi
if
[[
$db_dry_run
==
"false"
]]
;
then
# Set this to an empty string if db_dry_run is
# not set. By default the db_dry_run var is
# set to --list
extra_var_args+
=
" -e db_dry_run=''"
else
# always skip syncdb unless dry run is unchecked
syncdb
=
"false"
fi
if
[[
-f
${
WORKSPACE
}
/configuration-secure/ansible/vars/
${
environment
}
-
${
deployment
}
.yml
]]
;
then
...
...
@@ -67,7 +60,6 @@ done
extra_var_args+
=
" -e edxapp_app_dir=
${
WORKSPACE
}
"
extra_var_args+
=
" -e edxapp_code_dir=
${
WORKSPACE
}
/edx-platform"
extra_var_args+
=
" -e edxapp_user=jenkins"
extra_var_args+
=
" -e syncdb=
$syncdb
"
extra_var_args+
=
" -e EDXAPP_CFG_DIR=
${
WORKSPACE
}
"
# Generate the json configuration files
...
...
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