Skip to content

Commit

Permalink
perf: run init before starting containers (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmccormick committed Dec 4, 2023
1 parent ff8091b commit 7faf0a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutor/commands/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ def launch(
click.echo(fmt.title("Docker image updates"))
context.invoke(dc_command, command="pull")

click.echo(fmt.title("Starting the platform in detached mode"))
context.invoke(start, detach=True)

click.echo(fmt.title("Database creation and migrations"))
context.invoke(do.commands["init"])

click.echo(fmt.title("Starting the platform in detached mode"))
context.invoke(start, detach=True)

# Print the urls of the user-facing apps
public_app_hosts = ""
for host in hooks.Filters.APP_PUBLIC_HOSTS.iterate(context_name):
Expand Down

0 comments on commit 7faf0a9

Please sign in to comment.