forked from forks/microblog.pub
Tweak update task
This commit is contained in:
parent
e16dbb4590
commit
18d5c3bc26
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||||
|
|
8
tasks.py
8
tasks.py
|
@ -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")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue