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
41f4aa25
Commit
41f4aa25
authored
Feb 08, 2016
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add two more management commands, and make manage.py invocation uniform
parent
19e01278
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
util/vagrant/migrate.sh
+15
-5
No files found.
util/vagrant/migrate.sh
View file @
41f4aa25
...
...
@@ -84,6 +84,11 @@ if [[ $CONFIGURATION == none ]]; then
exit
1
fi
APPUSER
=
edxapp
if
[[
$CONFIGURATION
==
fullstack
]]
;
then
APPUSER
=
www-data
fi
# Birch details
if
[[
$TARGET
==
*
birch
*
&&
$INTERACTIVE
==
true
]]
;
then
...
...
@@ -204,7 +209,7 @@ EOF
make_config_venv
# Need to get rid of South from edx-platform, or things won't work.
sudo
-u
edxapp /edx/app/edxapp/venvs/edxapp/bin/pi
p uninstall
-y
South
sudo
-u
$APPUSER
/edx/bin/pip.edxap
p uninstall
-y
South
echo
"Upgrading to the beginning of Django 1.8"
cd
configuration/playbooks/vagrant
...
...
@@ -221,10 +226,8 @@ EOF
echo
"Running the Django 1.8 faked migrations"
for
item
in
lms cms
;
do
sudo
-u
edxapp
\
/edx/app/edxapp/venvs/edxapp/bin/python
\
/edx/app/edxapp/edx-platform/manage.py
$item
migrate
\
--settings
=
aws
--noinput
--fake-initial
sudo
-u
$APPUSER
-E
/edx/bin/python.edxapp
\
/edx/bin/manage.edxapp
$item
migrate
--settings
=
aws
--noinput
--fake-initial
done
if
[[
$CONFIGURATION
==
fullstack
]]
;
then
...
...
@@ -235,6 +238,13 @@ EOF
--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
...
...
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