Skip to content

Commit

Permalink
build: add hookbridge script
Browse files Browse the repository at this point in the history
  • Loading branch information
lgatellier committed May 8, 2024
1 parent 28fcfd3 commit 20e289d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hookbridge/server.py
Original file line number Diff line number Diff line change
@@ -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)
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 20e289d

Please sign in to comment.