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
16110c76
Commit
16110c76
authored
11 years ago
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing migrate
parent
0ce6ba0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
playbooks/roles/edxapp/tasks/service_variant_config.yml
+7
-8
No files found.
playbooks/roles/edxapp/tasks/service_variant_config.yml
View file @
16110c76
...
...
@@ -44,7 +44,7 @@
when
:
celery_worker is defined and not devstack
sudo_user
:
"
{{
supervisor_user
}}"
# Fake
migrations
, only when fake_migrations is defined
# Fake
syncdb with migrate
, only when fake_migrations is defined
# This overrides the database name to be the test database which
# the default application user has full write access to
-
name
:
syncdb and migrate
...
...
@@ -59,7 +59,7 @@
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
# Regular
migrations
# Regular
syncdb with migrate
-
name
:
syncdb and migrate
shell
:
>
chdir={{ edxapp_code_dir }}
...
...
@@ -70,22 +70,21 @@
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
# Fake migrat
ions
, only when fake_migrations is defined
# Fake migrat
e
, only when fake_migrations is defined
# This overrides the database name to be the test database which
# the default application user has full write access to
-
name
:
syncdb and
migrate
-
name
:
db
migrate
shell
:
>
chdir={{ edxapp_code_dir }}
{{ edxapp_venv_bin}}/python manage.py lms
syncdb --
migrate --noinput --settings=aws_migrate
when
:
fake_migrations is defined and migrate_
db is defined and migrate_db
|lower == "yes"
{{ edxapp_venv_bin}}/python manage.py lms migrate --noinput --settings=aws_migrate
when
:
fake_migrations is defined and migrate_
only is defined and migrate_only
|lower == "yes"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
DB_MIGRATION_NAME
:
"
{{
EDXAPP_TEST_MIGRATE_DB_NAME
}}"
notify
:
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
# Regular migrations
-
name
:
db migrate
shell
:
>
...
...
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