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 #!/bin/sh
inv update inv update --no-update-deps
exec supervisord -n -c misc/docker-supervisord.conf 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) run("poetry install", pty=True, echo=True)
@task(compile_scss, migrate_db) @task(pre=[compile_scss], post=[migrate_db])
def update(ctx): def update(ctx, update_deps=True):
# type: (Context) -> None # type: (Context, bool) -> None
if update_deps:
run("poetry install", pty=True, echo=True)
print("Done") print("Done")