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")