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
ead4d3c5
Commit
ead4d3c5
authored
Feb 09, 2016
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run the fixups after we get to the final version of the code.
parent
4ed8c2eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
util/vagrant/migrate.sh
+15
-11
No files found.
util/vagrant/migrate.sh
View file @
ead4d3c5
...
...
@@ -237,19 +237,9 @@ EOF
/edx/app/xqueue/xqueue/manage.py migrate
\
--settings
=
xqueue.aws_settings
--noinput
--fake-initial
fi
echo
"Running fix-up management commands"
sudo
-u
$APPUSER
-E
/edx/bin/python.edxapp
\
/edx/bin/manage.edxapp lms
--settings
=
aws generate_course_overview
--all
sudo
-u
$APPUSER
-E
/edx/bin/python.edxapp
\
/edx/bin/manage.edxapp lms
--settings
=
aws post_cohort_membership_fix
--commit
# Run the forums migrations again to catch things made while this script
# was running.
mongo cs_comments_service migrate-008-context.js
fi
echo
"Updating to final version of code"
cd
configuration/playbooks
echo
"edx_platform_version:
$TARGET
"
>
vars.yml
echo
"ora2_version:
$TARGET
"
>>
vars.yml
...
...
@@ -262,6 +252,20 @@ sudo ansible-playbook \
--extra-vars
=
"@vars.yml"
\
$SERVER_VARS
\
vagrant-
$CONFIGURATION
.yml
cd
../..
if
[[
$TARGET
==
*
dogwood
*
]]
;
then
echo
"Running data fixup management commands"
sudo
-u
$APPUSER
-E
/edx/bin/python.edxapp
\
/edx/bin/manage.edxapp lms
--settings
=
aws generate_course_overview
--all
sudo
-u
$APPUSER
-E
/edx/bin/python.edxapp
\
/edx/bin/manage.edxapp lms
--settings
=
aws post_cohort_membership_fix
--commit
# Run the forums migrations again to catch things made while this script
# was running.
mongo cs_comments_service migrate-008-context.js
fi
cd
/
sudo
rm
-rf
$TEMPDIR
...
...
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