tcl-filtrage/tasks.py

17 lines
282 B
Python
Raw Normal View History

2021-12-04 17:08:05 +01:00
from invoke import task
@task
def run(ctx):
ctx.run("uvicorn main:app --reload", pty=True, echo=True)
2022-03-25 19:18:15 +01:00
@task
def test(ctx):
ctx.run("pytest", pty=True, echo=True)
@task
def deploy(ctx):
ctx.run("ssh ubuntu /home/gaugendre/tcl-filtrage/update", pty=True, echo=True)