6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-13 06:37:46 +00:00

Align docker-compose logs invocation to the docker-compose up call

This commit is contained in:
Silvio Tomatis 2019-02-11 15:06:45 +01:00 committed by Régis Behmo
parent 486e5c5794
commit d08bc10bb6

View File

@ -144,7 +144,7 @@ def init_mysql(root):
click.echo(fmt.info(" waiting for mysql initialization"))
logs = subprocess.check_output([
"docker-compose", "-f", tutor_env.pathjoin(root, "local", "docker-compose.yml"),
"logs", "mysql",
"--project-name", "tutor_local", "logs", "mysql",
])
if b"MySQL init process done. Ready for start up." in logs:
click.echo(fmt.info("MySQL database initialized"))