From 18d5c3bc26783ddf8fdc028df51fa3798235f7fe Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 21 Aug 2022 09:39:57 +0200 Subject: [PATCH] Tweak update task --- misc/docker_start.sh | 2 +- tasks.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/misc/docker_start.sh b/misc/docker_start.sh index 3c53201..438e87e 100755 --- a/misc/docker_start.sh +++ b/misc/docker_start.sh @@ -1,3 +1,3 @@ #!/bin/sh -inv update +inv update --no-update-deps exec supervisord -n -c misc/docker-supervisord.conf diff --git a/tasks.py b/tasks.py index 58f14f6..4fa2d99 100644 --- a/tasks.py +++ b/tasks.py @@ -146,9 +146,11 @@ def install_deps(ctx): run("poetry install", pty=True, echo=True) -@task(compile_scss, migrate_db) -def update(ctx): - # type: (Context) -> None +@task(pre=[compile_scss], post=[migrate_db]) +def update(ctx, update_deps=True): + # type: (Context, bool) -> None + if update_deps: + run("poetry install", pty=True, echo=True) print("Done")