Tweak update task

This commit is contained in:
Thomas Sileo 2022-08-21 09:39:57 +02:00
parent e16dbb4590
commit 18d5c3bc26
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
inv update
inv update --no-update-deps
exec supervisord -n -c misc/docker-supervisord.conf

View File

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