Skip to content

Commit

Permalink
build(tasks): add run api server with poetry task
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-W committed Oct 18, 2023
1 parent 04a908a commit 5582ca3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
api_container_name = "ask-astro-api"


@task
def run_api_server_with_poetry(ctx: Context) -> None:
with ctx.cd("api"):
ctx.run("poetry run python -m ask_astro.app")


@task
def run_api_server(
ctx: Context,
Expand Down

0 comments on commit 5582ca3

Please sign in to comment.