From 92d7e7c4186ac3790d8420a81182dd104c771d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Sun, 28 Apr 2019 08:26:45 +0200 Subject: [PATCH] Fix running migrations Migrations were being done on openedx-assets, which does not depend on mysql. As a consequence, the mysql container was not being created on "migrate" and migrations were failing with "Timeout after 20s". --- tutor/scripts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutor/scripts.py b/tutor/scripts.py index a8963e3..5213e46 100644 --- a/tutor/scripts.py +++ b/tutor/scripts.py @@ -8,7 +8,8 @@ def migrate(root, run_func): config = tutor_config.load(root) click.echo(fmt.info("Creating all databases...")) - run_template(root, config, "openedx-assets", "create_databases.sh", run_func) + # Note: run this only when lms is activated? + run_template(root, config, "lms", "create_databases.sh", run_func) if config["ACTIVATE_LMS"]: click.echo(fmt.info("Running lms migrations..."))