diff --git a/hookbridge/server.py b/hookbridge/server.py new file mode 100644 index 0000000..fa8184b --- /dev/null +++ b/hookbridge/server.py @@ -0,0 +1,6 @@ +import uvicorn + + +def start(): + """Launched with `poetry run start` at root level""" + uvicorn.run("hookbridge.main:app", host="0.0.0.0", port=8000, reload=True) diff --git a/pyproject.toml b/pyproject.toml index f665faa..02ab718 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,9 @@ tox = "^4.15.0" black = "^24.4" flake8 = "^7.0.0" +[tool.poetry.scripts] +hookbridge = "hookbridge.server:start" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"