mirror of https://git.sr.ht/~tsileo/microblog.pub
Tweak update task
This commit is contained in:
parent
e16dbb4590
commit
18d5c3bc26
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
inv update
|
||||
inv update --no-update-deps
|
||||
exec supervisord -n -c misc/docker-supervisord.conf
|
||||
|
|
8
tasks.py
8
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")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue